public void testStart() {
InputStream is = getClass().getResourceAsStream("/start_instances.xml");
Set<InstanceStateChange> expected = ImmutableSet.of(new InstanceStateChange(defaultRegion,
"i-10a64379", InstanceState.PENDING, InstanceState.STOPPED));
InstanceStateChangeHandler handler = injector.getInstance(InstanceStateChangeHandler.class);
addDefaultRegionToHandler(handler);
Set<InstanceStateChange> result = factory.create(handler).parse(is);
assertEquals(result, expected);