UnitOfWork unitOfWork = module.newUnitOfWork();
testEntity = unitOfWork.get( testEntity );
String newVersion = spi.getEntityState( testEntity ).version();
assertThat( "version has not changed", newVersion, equalTo( version ) );
unitOfWork.complete();
}
}
@Test
public void givenPropertyIsModifiedWhenUnitOfWorkCompletesThenStoreState()