public String compile(final DataProvider dataProvider,
                          final String template) {
        final InputStream templateStream = this.getClass().getResourceAsStream(template);
        return compile(dataProvider,
                       templateStream);
    }
@Test
    public void testCompilerObjs() throws Exception {
        Collection<Object> objs = new ArrayList<Object>();
        final ObjectDataCompiler converter = new ObjectDataCompiler();
        final InputStream templateStream =
                this.getClass().getResourceAsStream("/templates/rule_template_1.drl");

        for (String[] row : rows) {
            OBJ obj = new OBJ(row);
            objs.add(obj);
        }
        final String drl = converter.compile(objs,
                                             templateStream);
        assertThat(EXPECTED_RULES.toString()).isEqualToIgnoringWhitespace(drl);
    }