@Test
public void testGetObjectByTypeValue() throws Exception {

  UUID id = UUID.randomUUID();
  String type = "ip";
  String value = "27.13.4.125";
  when(getTiService().getObject(any(), isA(GetObjectByTypeValueRequest.class))).then(i -> {
    GetObjectByTypeValueRequest request = i.getArgument(1);
    assertEquals(type, request.getType());
    assertEquals(value, request.getValue());
    return Object.builder().setId(id).build();
  });
  Response response = target(String.format("/v1/object/%s/%s", type, value)).request().get();
  assertEquals(200, response.getStatus());
  assertEquals(id.toString(), getPayload(response).get("id").textValue());
  verify(getTiService(), times(1)).getObject(notNull(), isA(GetObjectByTypeValueRequest.class));
}