@Test(expected = ObjectNotFoundException.class)
public void testFetchObjectTypeNotFound() throws Exception {

  UUID id = UUID.randomUUID();
  when(objectTypeRequestResolver.fetchExistingObjectType(id)).thenThrow(ObjectNotFoundException.class);
  delegate.handle(new GetObjectTypeByIdRequest().setId(id));
}