@Test
public void testCreate() {

    final String clientId = "client1";
    final RevisionInfo requestRevision = new RevisionInfo(clientId, 0L);
    final String userIdentity = "user1";
    final String entityId = "1";
    final RevisableEntity requestEntity = new TestEntity(entityId, requestRevision);
    final RevisableEntity createdEntity = entityService.create(
            requestEntity, userIdentity, () -> new TestEntity(entityId, null));
    assertNotNull(createdEntity);
    assertEquals(requestEntity.getIdentifier(), createdEntity.getIdentifier());
    final RevisionInfo createdRevision = createdEntity.getRevision();
    assertNotNull(createdRevision);
    assertEquals(requestRevision.getVersion().longValue() + 1, createdRevision.getVersion().longValue());
    assertEquals(clientId, createdRevision.getClientId());
    assertEquals(userIdentity, createdRevision.getLastModifier());
}