@Test
public void testBadExpression() throws Exception {

    ExtractedOntology ont = getRequiredOrmFactory(ExtractedOntology.class).createNew(VALUE_FACTORY.createIRI(ONT_URI));
    PropertyIriExpressionContext context = new DefaultPropertyIriExpressionContext(ont, "test-ontology",
            "simple-test-ontology-for-iri-expressions", VALUE_FACTORY.createIRI("urn://domain"),
            VALUE_FACTORY.createIRI("urn://range"));
    try {
        processor.processExpression("getNoSuchMethod()", context);
        Assert.fail("Exception should have been thrown when hitting a non-existent method");
    } catch (SemanticTranslationException e) {
        Assert.assertFalse(e.getMessage().isEmpty());
        Assert.assertNotNull(e.getCause());
    }
}