@Test
public void testCreateObjectType() throws Exception {

  UUID id = UUID.randomUUID();
  when(getTiService().createObjectType(any(), isA(CreateObjectTypeRequest.class))).then(i -> ObjectType.builder().setId(id).build());
  Response response = target("/v1/objectType").request().post(Entity.json(createCreateObjectTypeRequest()));
  assertEquals(201, response.getStatus());
  assertEquals(id.toString(), getPayload(response).get("id").textValue());
  verify(getTiService(), times(1)).createObjectType(notNull(), isA(CreateObjectTypeRequest.class));
}