@Test
public void bulkStoreAndRefreshOnSimpleModelShouldAssignKeysForEntities() {
ObjectDatastore ods = new AnnotationObjectDatastore();
ExampleModel[] models = new ExampleModel[] { new ExampleModel(),
new ExampleModel() };
ods.storeAll(Lists.newArrayList(models));
for (ExampleModel model : models) {
ods.refresh(model);
assertTrue(model.getAutoId() != 0);
}
}