@Test
public void testPropertyIriExpression() 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"));
    String expression = "getOntologyIri().concat('#').concat(getName()).concat('/').concat(getComment())";
    IRI result = processor.processExpression(expression, context);
    Assert.assertEquals(ONT_URI + "#test-ontology/simple-test-ontology-for-iri-expressions",
            result.stringValue());
    Assert.assertEquals("urn://domain", processor.processExpression("getDomain()",
            context).stringValue());
    Assert.assertEquals("urn://range", processor.processExpression("getRange()",
            context).stringValue());
}