String url = gatewayUrl + "/" + testTopology.getName() + "/test-service-path/test-service-resource";
GatewayServices srvs = GatewayServer.getGatewayServices();
TopologyService ts = srvs.getService(GatewayServices.TOPOLOGY_SERVICE);
assertThat(testTopology, not(nullValue()));
assertThat(testTopology.getName(), is("test-topology"));
given()
//.log().all()
.auth().preemptive().basic(user, password)
.expect()
//.log().all()
.statusCode(HttpStatus.SC_NOT_FOUND)
.when()
.get(url);
ts.deployTopology(testTopology);
given()
//.log().all()
.auth().preemptive().basic(user, password)
.expect()
//.log().all()
.statusCode(HttpStatus.SC_OK)
.contentType("text/plain")
.body(is("test-service-response"))
.when()
.get(url).getBody();
ts.deleteTopology(testTopology);
given()
//.log().all()
.auth().preemptive().basic(user, password)
.expect()