@Test
public void testGetObjectTypeCallsDelegate() throws Exception {

  ObjectTypeGetByIdDelegate delegate = mock(ObjectTypeGetByIdDelegate.class);
  when(delegateProvider.get(ObjectTypeGetByIdDelegate.class)).thenReturn(delegate);
  GetObjectTypeByIdRequest request = new GetObjectTypeByIdRequest();
  service.getObjectType(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}