### Question:
DeployerProxy extends AbstractProxy { public List<EntitySummary> getEntitiesFromApplication(String brooklynId) throws IOException { Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/" + brooklynId + "/entities") .request().buildGet(); return invocation.invoke().readEntity(new GenericType<List<EntitySummary>>(){}); }  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);  }### Answer:
@Test public void testGetEntitiesFromApplication() throws Exception { String json = TestUtils.getStringFromPath(TestFixtures.ENTITIES_PATH); getMockWebServer().enqueue(new MockResponse() .setBody(json) .setHeader("Accept", MediaType.APPLICATION_JSON) .setHeader("Content-Type", MediaType.APPLICATION_JSON) ); List<EntitySummary> response = getProxy().getEntitiesFromApplication(RANDOM_STRING); List<EntitySummary> fixture = ObjectMapperHelpers.JsonToObjectCollection(json, EntitySummary.class); assertEquals(fixture, response); }