@Test
public void testSearch() {

    doReturn(ImmutableSet.of(globalProperty)).when(service).search(anyString(), anyString());
    final Response response = resource.search(globalProperty.getName(), globalProperty.getType());
    Assert.assertEquals(response.getStatus(), 200);
    Assert.assertEquals(response.getEntity(), ImmutableSet.of(globalProperty));
}