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" ) );
assertTrue( type.isOfType( "foo.bar.TestClassAA" ) );
assertTrue( type.isOfType( "foo.bar.TestClassAAA" ) );
assertTrue( type.isOfType( "foo.bar.TestInterfaceA" ) );
assertTrue( type.isOfType( "foo.bar.TestInterfaceB" ) );
assertTrue( type.isOfType( "foo.bar.TestInterfaceC" ) );
assertFalse( type.isOfType( "java.util.List" ) );
assertFalse( type.isOfType( "java.util.ArrayList" ) );
assertFalse( type.isOfType( "foo.bar.FooBar" ) );
}