public void test() {
InputStream is = getClass().getResourceAsStream("/directionalgroup.xml");
DirectionalGroup expected = expected();
DirectionalGroupHandler handler = injector.getInstance(DirectionalGroupHandler.class);
DirectionalGroup result = factory.create(handler).parse(is);
assertEquals(result.toString(), expected.toString());
}