@Test
public void testUpdateObjectTypeCallsDelegate() throws Exception {

  ObjectTypeUpdateDelegate delegate = mock(ObjectTypeUpdateDelegate.class);
  when(delegateProvider.get(ObjectTypeUpdateDelegate.class)).thenReturn(delegate);
  UpdateObjectTypeRequest request = new UpdateObjectTypeRequest();
  service.updateObjectType(RequestHeader.builder().build(), request);
  verify(delegate).handle(request);
}