@Test
public void testCreateObjectTypeCallsDelegate() throws Exception {

  ObjectTypeCreateDelegate delegate = mock(ObjectTypeCreateDelegate.class);
  when(delegateProvider.get(ObjectTypeCreateDelegate.class)).thenReturn(delegate);
  CreateObjectTypeRequest request = new CreateObjectTypeRequest();
  service.createObjectType(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}