public static RequestStatusResponse updateServices(AmbariManagementController controller,
                                                     Set<ServiceRequest> requests,
                                                     Map<String, String> requestProperties, boolean runSmokeTest,
                                                     boolean reconfigureClients)
      throws AmbariException, AuthorizationException, NoSuchFieldException, IllegalAccessException {
    return updateServices(controller, requests, requestProperties, runSmokeTest, reconfigureClients, null);
  }
This factory method allows to define custom MaintenanceStateHelper mock.
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ServiceResourceProviderTest.java