public void tearDown() throws Exception {
if (managementContext instanceof AbstractManagementContext) ((AbstractManagementContext)managementContext).terminate();
}
@Test
public void testCreatesEntity() throws Exception {
<BUG>EntitySpec<BasicApplication> spec = BasicEntitySpec.newInstance(BasicApplication.class);

BasicApplicationImpl app = (BasicApplicationImpl) factory.createEntity(spec);
</BUG>
Entity proxy = app.getProxy();

public void tearDown() throws Exception {
if (managementContext instanceof AbstractManagementContext) ((AbstractManagementContext)managementContext).terminate();
}
@Test
public void testCreatesEntity() throws Exception {
EntitySpec<TestApplication> spec = BasicEntitySpec.newInstance(TestApplication.class);
TestApplicationImpl app = (TestApplicationImpl) factory.createEntity(spec);
Entity proxy = app.getProxy();
