public void test() {
InputStream is = getClass().getResourceAsStream("/describe_policy.xml");
Policy expected = expected();
PolicyHandler handler = injector.getInstance(PolicyHandler.class);
Policy result = factory.create(handler).parse(is);
assertEquals(result, expected);
assertEquals(result.getAttributes(), expected.getAttributes());
}