@Test
public void testGetEntities() {

    final TestEntity entity1 = new TestEntity("1", null);
    final TestEntity entity2 = new TestEntity("2", null);
    final List<TestEntity> entities = Arrays.asList(entity1, entity2);
    final List<TestEntity> resultEntities = entityService.getEntities(() -> entities);
    assertNotNull(resultEntities);
    resultEntities.forEach(e -> {
        assertNotNull(e.getRevision());
        assertEquals(0, e.getRevision().getVersion().longValue());
    });
}