@SuppressWarnings("unchecked")
    public static PipelineIR configToPipelineIR(final List<SourceWithMetadata> sourcesWithMetadata,
                                                final boolean supportEscapes, ConfigVariableExpander cve) throws InvalidIRException {
        return compileSources(sourcesWithMetadata, supportEscapes, cve);
    }
@Test
    public void testConfigToPipelineIR() throws Exception {
        SourceWithMetadata swm = new SourceWithMetadata("proto", "path", 1, 1, "input {stdin{}} output{stdout{}}");
        final ConfigVariableExpander cve = ConfigVariableExpander.withoutSecret(EnvironmentVariableProvider.defaultProvider());
        final PipelineIR pipelineIR =
                ConfigCompiler.configToPipelineIR(Collections.singletonList(swm), false, cve);
        assertThat(pipelineIR.getOutputPluginVertices().size(), is(1));
        assertThat(pipelineIR.getFilterPluginVertices().size(), is(0));
    }