@Test
public void testIsValid() throws Exception {

    GenericDocFactory factory = new GenericDocFactory();
    assertTrue(factory.isValid(load("/sdmx-generic-sample.xml")));
    assertFalse(factory.isValid(load("/sdmx-compact-sample.xml")));
}