@Test
public void testSearchObjectTypesCallsDelegate() throws Exception {

  ObjectTypeSearchDelegate delegate = mock(ObjectTypeSearchDelegate.class);
  when(delegateProvider.get(ObjectTypeSearchDelegate.class)).thenReturn(delegate);
  SearchObjectTypeRequest request = new SearchObjectTypeRequest();
  service.searchObjectTypes(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}