writeJavaSourceFile( "foo.bar", "TestClassAAA", "public class TestClassAAA implements TestInterfaceB, TestInterfaceC {}" );
writeJavaSourceFile( "foo.bar", "TestInterfaceA", "public interface TestInterfaceA {}" );
writeJavaSourceFile( "foo.bar", "TestInterfaceB", "public interface TestInterfaceB {}" );
writeJavaSourceFile( "foo.bar", "TestInterfaceC", "public interface TestInterfaceC {}" );
final JdtJavaTypeReferenceService service = new JdtJavaTypeReferenceService( project );
final JavaType type = service.resolve( "foo.bar.TestClassA" );
assertNotNull( type );
assertTrue( type.isOfType( "java.lang.Object" ) );
assertTrue( type.isOfType( "foo.bar.TestClassA" ) );