public void test() {
InputStream is = getClass().getResourceAsStream("/get_instance_profile.xml");
InstanceProfile expected = expected();
InstanceProfileHandler handler = injector.getInstance(InstanceProfileHandler.class);
InstanceProfile result = factory.create(handler).parse(is);
assertEquals(result, expected);
assertEquals(result.getPath(), expected.getPath());
assertEquals(result.getName(), expected.getName());