assertTrue(objectStore.hasInstances(spec));
}
@Test
public void validatesGettingObjectStoreInstances() throws Exception {
final SaveObjectCommand command = objectStore.createSaveObjectCommand(adapter);
objectStore.execute(Collections.<PersistenceCommand> singletonList(command));
final ObjectAdapter[] array = objectStore.getInstances(persistenceHelper);
assertTrue(array.length == 1);
}