@Test
public void persist_then_update() throws Exception {
iswf.beginTran();
WrapperValuedEntity entity = repo.newEntity();
entity.setStringProperty("1");
entity.setBooleanProperty(false);
entity.setByteProperty((byte)321);
entity.setDoubleProperty(123456768723429.0);
entity.setFloatProperty(654321.0f);
entity.setIntegerProperty(543);
entity.setLongProperty(90876512345L);
entity.setShortProperty((short)7654);
entity.setCharacterProperty('A');
iswf.commitTran();
iswf.bounceSystem();
iswf.beginTran();
entity = repo.list().get(0);
assertThat(entity.getStringProperty(), is("1"));
assertThat(entity.getBooleanProperty(), is(false));
assertThat(entity.getByteProperty(), is((byte)321));
assertThat(entity.getDoubleProperty(), is(123456768723429.0));
assertThat(entity.getFloatProperty(), is(654321.0f));
assertThat(entity.getIntegerProperty(), is(543));
assertThat(entity.getLongProperty(), is(90876512345L));
assertThat(entity.getShortProperty(), is((short)7654));
assertThat(entity.getCharacterProperty(), is('A'));
entity.setBooleanProperty(true);
entity.setByteProperty((byte)123);
entity.setDoubleProperty(9876543210987.0);
entity.setFloatProperty(123456.0f);
entity.setIntegerProperty(456);
entity.setLongProperty(12345678901L);
entity.setShortProperty((short)4567);
entity.setCharacterProperty('X');
iswf.commitTran();
iswf.bounceSystem();
iswf.beginTran();
entity = repo.list().get(0);
assertThat(entity.getBooleanProperty(), is(true));
assertThat(entity.getByteProperty(), is((byte)123));
assertThat(entity.getDoubleProperty(), is(9876543210987.0));
assertThat(entity.getFloatProperty(), is(123456.0f));
assertThat(entity.getIntegerProperty(), is(456));
assertThat(entity.getLongProperty(), is(12345678901L));
assertThat(entity.getShortProperty(), is((short)4567));
assertThat(entity.getCharacterProperty(), is('X'));
iswf.commitTran();
}