AutomationServiceClient extends BaseRestClient { public String runAutomationJob(AutomationRequest request, File xmlFile) throws RestServiceException { WebTarget webTarget = client.target(baseUrl + METHOD_RUN_JOB); MultiPart multiPart = new MultiPart(); if (xmlFile != null) { BodyPart bp = new FileDataBodyPart("file", xmlFile); multiPart.bodyPart(bp); } multiPart.bodyPart(new FormDataBodyPart("automationRequest", request, MediaType.APPLICATION_XML_TYPE)); Response response = webTarget.request().post(Entity.entity(multiPart, MediaType.MULTIPART_FORM_DATA_TYPE)); exceptionHandler.checkStatusCode(response); return response.readEntity(String.class); } AutomationServiceClient(String serviceUrl);  AutomationServiceClient(String serviceUrl, final String proxyServer, final Integer proxyPort); String runAutomationJob(AutomationRequest request, File xmlFile); String runAutomationJob(AutomationRequest request,
            InputStream xmlFileStream);  }
@Test @Tag(TestGroups.MANUAL) public void testRunJob() { AutomationRequest request = AutomationRequest.builder().withProductName("Test Product").withRampTime("60s") .withSimulationTime("120s").withUserIntervalIncrement(1).withName("Google Home") .withAddedJobRegion(new AutomationJobRegion(VMRegion.US_EAST, "5")).build(); String result = client.runAutomationJob(request, (File) null); assertNotNull(result); }