DeployerProxy extends AbstractProxy { public TaskSummary removeApplication(String brooklynId) throws IOException { Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/" + brooklynId).request().buildDelete(); return invocation.invoke().readEntity(TaskSummary.class); }  ApplicationSummary getApplication(String brooklynId); JsonNode getApplicationsTree(); TaskSummary removeApplication(String brooklynId); TaskSummary deployApplication(String tosca); List<EntitySummary> getEntitiesFromApplication(String brooklynId); List<SensorSummary> getEntitySensors(String brooklynId, String brooklynEntityId); String getEntitySensorsValue(String brooklynId, String brooklynEntityId, String sensorId);  }
@Test public void testRemoveApplication() throws Exception { String json = TestUtils.getStringFromPath(TestFixtures.TASK_SUMMARY_DELETE_PATH); getMockWebServer().enqueue(new MockResponse() .setBody(json) .setHeader("Accept", MediaType.APPLICATION_JSON) .setHeader("Content-Type", MediaType.APPLICATION_JSON) ); TaskSummary response = getProxy().removeApplication(RANDOM_STRING); TaskSummary fixture = ObjectMapperHelpers.JsonToObject(json, TaskSummary.class); assertEquals(fixture.getId(), response.getId()); }