@Test(dataProvider = "SchemaValidationEnabled")
  public void doTest(boolean schemaValidationEnabled) throws Exception {
    CougarHelpers helpers = new CougarHelpers();
    try {
      CougarManager cougarManager = CougarManager.getInstance();
      helpers.setSOAPSchemaValidationEnabled(schemaValidationEnabled);
      // Create the SOAP request as an XML Document (with a complex map parameter with complex entry
      // missing mandatory fields)
      XMLHelpers xMLHelpers1 = new XMLHelpers();
      Document createAsDocument1 =
          xMLHelpers1.getXMLObjectFromString(
              "<MapOfComplexOperationRequest><inputMap><entry key=\"aaa\"><ComplexObject/></entry></inputMap></MapOfComplexOperationRequest>");
      // Set up the Http Call Bean to make the request
      CougarManager cougarManager2 = CougarManager.getInstance();
      HttpCallBean getNewHttpCallBean5 = cougarManager2.getNewHttpCallBean("87.248.113.14");
      CougarManager cougarManager5 = cougarManager2;

      getNewHttpCallBean5.setServiceName("Baseline");

      getNewHttpCallBean5.setVersion("v2");
      // Set the created SOAP request as the PostObject
      getNewHttpCallBean5.setPostObjectForRequestType(createAsDocument1, "SOAP");
      // Get current time for getting log entries later

      Timestamp getTimeAsTimeStamp10 = new Timestamp(System.currentTimeMillis());
      // Make the SOAP call to the operation
      cougarManager5.makeSoapCougarHTTPCalls(getNewHttpCallBean5);
      // Create the expected response object as an XML document (fault)
      XMLHelpers xMLHelpers4 = new XMLHelpers();
      Document createAsDocument11 =
          xMLHelpers4.getXMLObjectFromString(
              "<soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>DSC-0018</faultstring><detail/></soapenv:Fault>");
      // Convert the expected response to SOAP for comparison with the actual response
      Map<String, Object> convertResponseToSOAP12 =
          cougarManager5.convertResponseToSOAP(createAsDocument11, getNewHttpCallBean5);
      // Check the response is as expected
      HttpResponseBean response5 =
          getNewHttpCallBean5.getResponseObjectsByEnum(
              com.betfair.testing.utils.cougar.enums.CougarMessageProtocolResponseTypeEnum.SOAP);
      AssertionUtils.multiAssertEquals(
          convertResponseToSOAP12.get("SOAP"), response5.getResponseObject());

      // generalHelpers.pauseTest(2000L);
      // Check the log entries are as expected

      cougarManager5.verifyAccessLogEntriesAfterDate(
          getTimeAsTimeStamp10,
          new AccessLogRequirement("87.248.113.14", "/BaselineService/v2", "BadRequest"));
    } finally {
      helpers.setSOAPSchemaValidationEnabled(true);
    }
  }
  @Test(dataProvider = "SchemaValidationEnabled")
  public void doTest(boolean schemaValidationEnabled) throws Exception {
    CougarHelpers helpers = new CougarHelpers();
    try {
      CougarManager cougarManager = CougarManager.getInstance();
      helpers.setSOAPSchemaValidationEnabled(schemaValidationEnabled);
      // Create the HttpCallBean
      CougarManager cougarManager1 = CougarManager.getInstance();
      HttpCallBean httpCallBeanBaseline = cougarManager1.getNewHttpCallBean();
      CougarManager cougarManagerBaseline = cougarManager1;
      // Get the cougar logging attribute for getting log entries later
      // Point the created HttpCallBean at the correct service
      httpCallBeanBaseline.setServiceName("baseline", "cougarBaseline");

      httpCallBeanBaseline.setVersion("v2");
      // Create the SOAP request as an XML Document (with a missing mandatory boolean parameter)
      XMLHelpers xMLHelpers2 = new XMLHelpers();
      Document createAsDocument2 =
          xMLHelpers2.getXMLObjectFromString(
              "<BoolOperationRequest><headerParam>true</headerParam><message><bodyParameter>true</bodyParameter></message></BoolOperationRequest>");
      // Set up the Http Call Bean to make the request
      CougarManager cougarManager3 = CougarManager.getInstance();
      HttpCallBean getNewHttpCallBean3 = cougarManager3.getNewHttpCallBean("87.248.113.14");
      cougarManager3 = cougarManager3;

      cougarManager3.setCougarFaultControllerJMXMBeanAttrbiute("DetailedFaults", "false");

      getNewHttpCallBean3.setServiceName("Baseline");

      getNewHttpCallBean3.setVersion("v2");
      // Set the created SOAP request as the PostObject
      getNewHttpCallBean3.setPostObjectForRequestType(createAsDocument2, "SOAP");
      // Get current time for getting log entries later

      Timestamp getTimeAsTimeStamp9 = new Timestamp(System.currentTimeMillis());
      // Make the SOAP call to the operation
      cougarManager3.makeSoapCougarHTTPCalls(getNewHttpCallBean3);
      // Create the expected response object as an XML document (fault)
      XMLHelpers xMLHelpers5 = new XMLHelpers();
      Document createAsDocument11 =
          xMLHelpers5.getXMLObjectFromString(
              "<soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>DSC-0018</faultstring><detail/></soapenv:Fault>");

      // Check the response is as expected
      HttpResponseBean response6 =
          getNewHttpCallBean3.getResponseObjectsByEnum(
              com.betfair.testing.utils.cougar.enums.CougarMessageProtocolResponseTypeEnum.SOAP);
      AssertionUtils.multiAssertEquals(createAsDocument11, response6.getResponseObject());

      // generalHelpers.pauseTest(500L);
      // Check the log entries are as expected

      CougarHelpers cougarHelpers10 = new CougarHelpers();
      String JavaVersion = cougarHelpers10.getJavaVersion();

      CougarManager cougarManager11 = CougarManager.getInstance();
      cougarManager11.verifyAccessLogEntriesAfterDate(
          getTimeAsTimeStamp9,
          new AccessLogRequirement("87.248.113.14", "/BaselineService/v2", "BadRequest"));
    } finally {
      helpers.setSOAPSchemaValidationEnabled(true);
    }
  }