@Test(groups = "unit", testName = "DescribePlacementGroupsResponseHandlerTest")
public class DescribePlacementGroupsResponseHandlerTest extends BaseEC2HandlerTest {
public void testApplyInputStream() {
InputStream is = getClass().getResourceAsStream("/describe_placement_groups.xml");
PlacementGroup expected = new PlacementGroup(defaultRegion, "XYZ-cluster", "cluster",
PlacementGroup.State.AVAILABLE);
DescribePlacementGroupsResponseHandler handler = injector
.getInstance(DescribePlacementGroupsResponseHandler.class);
addDefaultRegionToHandler(handler);
PlacementGroup result = getOnlyElement(factory.create(handler).parse(is));
assertEquals(result, expected);
}