assertEquals(proxy.getParent(), null);
assertSame(proxy.getApplication(), proxy);
}
@Test
public void testCreatesProxy() throws Exception {
<BUG>BasicApplication app = new BasicApplicationImpl();
</BUG>
Application proxy = factory.createEntityProxy(Application.class, app);
<BUG>assertFalse(proxy instanceof BasicApplication, "proxy="+app);
</BUG>
assertTrue(proxy instanceof EntityProxy, "proxy="+app);

assertEquals(proxy.getParent(), null);
assertSame(proxy.getApplication(), proxy);
}
@Test
public void testCreatesProxy() throws Exception {
TestApplication app = new TestApplicationImpl();
Application proxy = factory.createEntityProxy(Application.class, app);
assertFalse(proxy instanceof TestApplication, "proxy="+app);
