@Test
public void testPropertyExpansionInJSON() throws Exception {

    ConfigurationFile configurationFile = new ConfigurationFile();
    configurationFile.setResource("prop-expansion-config.json");
    Properties props = new Properties();
    props.put("prop", "yes");
    AnalysisConfigurationGatherer gatherer = new AnalysisConfigurationGatherer(null,
            new Object[] { configurationFile }, false, true, new PropertyValueInterpolator(props),
            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);
}