Buggy code:
public abstract class NamedElement_CommonTest extends CommonNodeSemanticsTest { protected final String ERROR_NotAValue = NotAValueErrorElement . ERROR_IS_NOT_A_VALUE ; protected PickedElement < INamedElement > parseNamedElement ( String source ) { } protected PickedElement < ITypeNamedElement > parseTypeElement ( String source ) { } protected int getMarkerIndex ( String source ) { } @ Test public void test_resolveElement ( ) throws Exception { } public abstract void test_resolveElement________ ( ) throws Exception { } public static void test_resolveElement ( PickedElement < ? extends INamedElement > pickedElement , String aliasTarget , String expectedTypeForValueContext ) { } public static void test_resolveElement_Concrete ( PickedElement < ? extends INamedElement > pickedElement , String expectedTypeName ) { } public static void test_resolveElement_Type ( PickedElement < ? extends ITypeNamedElement > pickedElement ) { } protected static void test_resolveConcreteElement ( PickedElement < ? extends INamedElement > pickedElement , String aliasTarget ) { final ISemanticContext context = pickedElement . context ; final INamedElement namedElement = pickedElement . element ; <START_BUG> AssertNamespace . assertTrue ( ( context == ( context . findSemanticContext ( namedElement ) ) ) ) ; <END_BUG> checkIsSameResolution ( namedElement . getSemantics ( context ) . resolveConcreteElement ( ) , namedElement . getSemantics ( context ) . resolveConcreteElement ( ) ) ; INamedElementSemanticData semantics = namedElement . getSemantics ( context ) ; IConcreteNamedElement concreteElement = semantics . resolveConcreteElement ( ) . result ; if ( concreteElement instanceof ErrorElement ) { ErrorElement notFoundError = ( ( ErrorElement ) ( concreteElement ) ) ; AssertNamespace . assertTrue ( ( ( notFoundError . getSemanticContainerKey ( ) ) == ( namedElement . getSemanticContainerKey ( ) ) ) ) ; AssertNamespace . assertTrue ( ( ( notFoundError . getOwnerElement ( ) ) != null ) ) ; AssertNamespace . assertTrue ( ( ( notFoundError . getLexicalParent ( ) ) == null ) ) ; AssertNamespace . assertTrue ( ( ( notFoundError . getParentNamespace ( ) ) == null ) ) ; } if ( aliasTarget == null ) { AssertNamespace . assertTrue ( ( concreteElement == namedElement ) ) ; } else { AssertNamespace . assertTrue ( ( concreteElement != null ) ) ; AssertNamespace . assertTrue ( concreteElement . getName ( ) . equals ( aliasTarget ) ) ; } } public static void test_resolveTypeForValueContext ( PickedElement < ? extends INamedElement > pickedElement , String expectedTypeName ) { } @ Test public void test_resolveSearchInMembersScope ( ) throws Exception { } public abstract void test_resolveSearchInMembersScope________ ( ) throws Exception { } public static final String [ ] COMMON_PROPERTIES = array ( "init" , "sizeof" , "alignof" , "mangleof" , "stringof" ) ; protected static void test_resolveSearchInMembersScope ( PickedElement < ? extends INamedElement > pickedElement , String ... expectedResults ) { } protected static void test_resolveSearchInMembersScope ( PickedElement < ? extends INamedElement > pickedElement , String [ ] properties , String ... expectedResults ) { } protected static void testExpressionResolution ( String source , String ... expectedResults ) throws ExecutionException { } protected static void testExpressionResolution_ ( PickedElement < Expression > expPick , String ... expectedResults ) { } protected static PickedElement < INamedElement > picked2 ( INamedElement namedElement , ISemanticContext context ) { } No newline ; at end ; of file ; }

Fix:
AssertNamespace . assertTrue ( ( context == ( namedElement . getContextForThisElement ( context ) ) ) ) ;