@Test
public void testNonExistingObjectTypeThrowsException(){

  InvalidArgumentException ex = assertThrows(InvalidArgumentException.class, () -> handler.assertObjectTypeExists("someObjectType", "type"));
  assertEquals(set("object.type.not.exist"), set(ex.getValidationErrors(), InvalidArgumentException.ValidationError::getMessageTemplate));
}