public void testCheckAmbiguityInRoleMethodSpec3() throws Exception {
   // check ambiguous role method specifier in callout binding of T3.R2
   RefactoringStatus expected =
       RefactoringUtil.addAmbiguityFatalError(null, new ExtractMethodAmbuguityMsgCreator());
   RefactoringStatus actual =
       RefactoringUtil.checkForAmbiguousRoleMethodSpecs(
           _t3r2, "m", new ExtractMethodAmbuguityMsgCreator());
   assertEquals(expected.getSeverity(), actual.getSeverity());
   assertNotNull(
       expected.getEntryMatchingCode(
           Corext.getPluginId(), OTRefactoringStatusCodes.AMBIGUOUS_METHOD_SPECIFIER));
   assertNotNull(
       actual.getEntryMatchingCode(
           Corext.getPluginId(), OTRefactoringStatusCodes.AMBIGUOUS_METHOD_SPECIFIER));
 }
 public void testCheckAmbiguityInBaseMethodSpec2() throws Exception {
   // check ambiguous base method specifier in callout binding of T3.R2
   RefactoringStatus expected =
       RefactoringUtil.addAmbiguityFatalError(null, new ExtractMethodAmbuguityMsgCreator());
   ArrayList<IRoleType> boundRole = new ArrayList<IRoleType>();
   boundRole.add(_t3r2);
   RefactoringStatus actual =
       RefactoringUtil.checkForAmbiguousBaseMethodSpecs(
           boundRole, "f", "", new ExtractMethodAmbuguityMsgCreator());
   assertEquals(expected.getSeverity(), actual.getSeverity());
   assertNotNull(
       expected.getEntryMatchingCode(
           Corext.getPluginId(), OTRefactoringStatusCodes.AMBIGUOUS_METHOD_SPECIFIER));
   assertNotNull(
       actual.getEntryMatchingCode(
           Corext.getPluginId(), OTRefactoringStatusCodes.AMBIGUOUS_METHOD_SPECIFIER));
 }