public String compile(final DataProvider dataProvider,
                          final String template) {
        final InputStream templateStream = this.getClass().getResourceAsStream(template);
        return compile(dataProvider,
                       templateStream);
    }
@Test
    public void testCompiler() throws Exception {
        TestDataProvider tdp = new TestDataProvider(rows);
        final DataProviderCompiler converter = new DataProviderCompiler();
        final String drl = converter.compile(tdp,
                                             "/templates/rule_template_1.drl");

        assertThat(EXPECTED_RULES.toString()).isEqualToIgnoringWhitespace(drl);
    }