.build();
public void testFetchConfigXMLWhenResponseIs2xx() {
HttpResponse fetchConfigResponse = HttpResponse.builder().statusCode(200)
.payload(payloadFromResourceWithContentType("/sample_job.xml", "text/xml")).build();
JenkinsApi apiWhenJobExists = requestSendsResponse(fetchConfig, fetchConfigResponse);
String configXML = apiWhenJobExists.getJobApi().fetchConfigXML("ddd");
//TODO enable this assertion
//assertEquals(configXML, Strings2.toStringAndClose(getClass().getResourceAsStream("/sample_job.xml")));
}