@Test
public void testStoreObjectSavesEntity() {

  ObjectRecord record = new ObjectRecord().setId(UUID.randomUUID());
  ObjectEntity entity = new ObjectEntity().setId(record.getId());
  when(objectRecordConverter.toEntity(record)).thenReturn(entity);
  assertSame(record, dao.storeObject(record));
  verify(objectRecordConverter).toEntity(argThat(r -> r.getId() == record.getId()));
  verify(objectManager).saveObject(entity);
}