@Test
public void testTraverseGraphByObjectIdWithoutObject() throws Exception {

  TraverseByObjectIdRequest request = new TraverseByObjectIdRequest().setId(UUID.randomUUID());
  doThrow(AccessDeniedException.class).when(securityContext).checkReadPermission((ObjectRecord) isNull());
  try {
    delegate.handle(request);
    fail();
  } catch (AccessDeniedException ignored) {
    verify(objectFactDao).getObject(request.getId());
  }
}