@Test
public void testSearchObjectsCallsDelegate() throws Exception {

  ObjectSearchDelegate delegate = mock(ObjectSearchDelegate.class);
  when(delegateProvider.get(ObjectSearchDelegate.class)).thenReturn(delegate);
  SearchObjectRequest request = new SearchObjectRequest();
  service.searchObjects(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}