@Test
public void testCreateMissingObjectFailsOnObjectValidation() {

  ObjectTypeEntity type = mockFetchObjectType();
  mockValidator(false);
  try {
    resolver.resolveObject(String.format("%s/%s", type.getName(), "ObjectValue"));
    fail();
  } catch (InvalidArgumentException ex) {
    assertEquals("object.not.valid", ex.getValidationErrors().iterator().next().getMessageTemplate());
    verify(objectFactDao, never()).storeObject(any());
  }
}