@Test(expected = InvalidRevisionException.class)
public void testDeleteWhenDoesNotExist() {

    final RevisionInfo revisionInfo = new RevisionInfo(null, 1L);
    final RevisableEntity deletedEntity = entityService.delete("1", revisionInfo, () -> null);
    assertNull(deletedEntity);
}