@Test
public void testConvertWithStatistics() {

  ObjectResponseConverter converter = new ObjectResponseConverter(objectTypeConverter, factTypeConverter,
          id -> Collections.singleton(new ObjectStatisticsContainer.FactStatistic(UUID.randomUUID(), 42, 123456789, 987654321)));
  ObjectRecord record = createRecord();
  Object model = converter.apply(record);
  assertModel(record, model);
  assertEquals(1, model.getStatistics().size());
  assertNotNull(model.getStatistics().get(0).getType());
  assertEquals(42, model.getStatistics().get(0).getCount());
  assertEquals(123456789, (long) model.getStatistics().get(0).getLastAddedTimestamp());
  assertEquals(987654321, (long) model.getStatistics().get(0).getLastSeenTimestamp());
}