@Test
public void testRemoveApplication() throws Exception {

    SeaCloudsApplicationData application = (SeaCloudsApplicationData) deployerResource.addApplication(getDam()).getEntity();
    deployerResource.addApplication(getDam());
    deployerResource.addApplication(getDam());
    List<SeaCloudsApplicationData> list = (List<SeaCloudsApplicationData>) deployerResource.listApplications().getEntity();
    assertEquals(list.size(), 3);
    deployerResource.removeApplication(application.getSeaCloudsApplicationId());
    list = (List<SeaCloudsApplicationData>) deployerResource.listApplications().getEntity();
    assertEquals(list.size(), 2);
}