}
@Test
public void testCreateRemoveCreate() throws Exception {
DataStore.DATA.clear();
final BMPLocalHome home = getHome();
BMPLocalInterface result = home.createWithValueAndPk(88888, "Hello1");
Assert.assertEquals("Hello1", result.getMyField());
result.remove();
Assert.assertFalse(DataStore.DATA.containsKey(88888));
try {
result.getMyField();
throw new RuntimeException("Expected invocation on removed instance to fail");
} catch (NoSuchObjectLocalException expected) {
}
result = home.createWithValueAndPk(88888, "Hello2");
Assert.assertEquals("Hello2", result.getMyField());
result.remove();
Assert.assertFalse(DataStore.DATA.containsKey(88888));
try {
result.getMyField();