@Test
public void testReadingConfigurationFromClassPath() throws Exception {

    ConfigurationFile configurationFile = new ConfigurationFile();
    configurationFile.setResource("test-configuration-file.xml");
    AnalysisConfigurationGatherer gatherer = new AnalysisConfigurationGatherer(null,
            new Object[] { configurationFile }, false, false, new PropertyValueInterpolator(new Properties()), null,
            null);
    Revapi revapi = Revapi.builder()
            .withFilters(TestExtension.class)
            .build();
    AnalysisContext.Builder ctxBld = AnalysisContext.builder();
    gatherer.gatherConfig(revapi, ctxBld);
    AnalysisContext ctx = ctxBld.build();
    ModelNode cfg = ctx.getConfiguration();
    String json = "[{\"extension\": \"test\", \"configuration\": \"yes\"}]";
    ModelNode expected = ModelNode.fromJSONString(json);
    assertEquals(expected, cfg);
}