@Test
public void testDelete() {

    final RevisionInfo revisionInfo = new RevisionInfo(null, 0L);
    final TestEntity requestEntity = new TestEntity("1", revisionInfo);
    final RevisableEntity createdEntity = entityService.create(
            requestEntity, "user1", () -> requestEntity);
    assertNotNull(createdEntity);
    final RevisableEntity deletedEntity = entityService.delete(
            createdEntity.getIdentifier(), createdEntity.getRevision(), () -> createdEntity);
    assertNotNull(deletedEntity);
}