@Test
public void testReadingConfigurationFromJSON() throws Exception {

    PlexusConfiguration analysisConfiguration = new DefaultPlexusConfiguration("analysisConfiguration");
    String json = "[{\"extension\": \"test\", \"configuration\": \"yes\"}]";
    analysisConfiguration.setValue(json);
    AnalysisConfigurationGatherer gatherer = new AnalysisConfigurationGatherer(analysisConfiguration, new Object[0],
            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();
    ModelNode expected = ModelNode.fromJSONString(json);
    assertEquals(expected, cfg);
}