@Test
public void persist_then_update() throws Exception {
iswf.beginTran();
PrimitiveValuedEntity entity = repo.newEntity();
entity.setId(1);
entity.setBooleanProperty(false);
entity.setByteProperty((byte)456);
entity.setDoubleProperty(123456789876.0);
entity.setFloatProperty(654321.0f);
entity.setIntProperty(765);
entity.setLongProperty(7654321012345L);
entity.setShortProperty((short)543);
entity.setCharProperty('A');
iswf.commitTran();
iswf.bounceSystem();
iswf.beginTran();
entity = repo.list().get(0);
assertThat(entity.getBooleanProperty(), is(false));
assertThat(entity.getByteProperty(), is((byte)456));
assertThat(entity.getDoubleProperty(), is(123456789876.0));
assertThat(entity.getFloatProperty(), is(654321.0f));
assertThat(entity.getIntProperty(), is(765));
assertThat(entity.getLongProperty(), is(7654321012345L));
assertThat(entity.getShortProperty(), is((short)543));
assertThat(entity.getCharProperty(), is('A'));
entity.setBooleanProperty(true);
entity.setByteProperty((byte)123);
entity.setDoubleProperty(9876543210987.0);
entity.setFloatProperty(123456.0f);
entity.setIntProperty(456);
entity.setLongProperty(12345678901L);
entity.setShortProperty((short)4567);
entity.setCharProperty('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.getIntProperty(), is(456));
assertThat(entity.getLongProperty(), is(12345678901L));
assertThat(entity.getShortProperty(), is((short)4567));
assertThat(entity.getCharProperty(), is('X'));
iswf.commitTran();
}