try {
AutoscaleApi autoscaleApi = api(server.getUrl("/").toString(), "rackspace-autoscale", overrides);
GroupApi api = autoscaleApi.getGroupApiForZone("DFW");
GroupState gs = api.getState("1234567890");
/*
* Check request
*/
assertAuthentication(server);
assertRequest(server.takeRequest(), "GET", "/v1.0/888888/groups/1234567890/state");
/*
* Check response
*/
assertEquals(gs.getId(), "1234567890");
assertEquals(gs.getGroupInstances().size(), 2);
assertEquals(gs.getGroupInstances().get(0).getId(), "444444");
} finally {
server.shutdown();
}
}