@Test
public void testGetFromMarathon() {

    Map map = Collections.singletonMap("response", new GetAppResponse());
    doReturn(map).when(applicationService).getAppFromDeploymentEnv(anyString());
    final Response response = resource.getFromMarathon(application.getTenant(), application.getName());
    Assert.assertEquals(response.getStatus(), 200);
    Assert.assertEquals(response.getEntity(), map);
}