@Test
@Rollback(true)
public void save_newEntity() throws Exception {
for (Repository repository : repositories) {
BasicEntity entity = constructNewEntityForRepository(repository);
RepositoryTestUtils.populateAllRequiredFieldsInEntity(sharedManager, entity);
BasicEntity saved = (BasicEntity)repository.save(entity);
sharedManager.flush();
assertThat(saved, is(sameInstance(entity)));
assertThat(saved.getEntityId(), is(notNullValue()));
}
}