@Test(expected = SemanticTranslationException.class)
public void testNonXml() throws Exception {

    final ExtractedOntology ont = getRequiredOrmFactory(ExtractedOntology.class)
            .createNew(VALUE_FACTORY.createIRI(ONT_URI));
    try (InputStream is = new FileInputStream(new File("src/test/resources/ormFactories.conf"))) {
        xmlStackingSemanticTranslator.translate(is, "ormFactories.conf", ont);
        fail("Translating non-xml should throw a semantic translation exception");
    }
}