@Test public void VirtualProperties() { MiniRepository repository = new MiniRepository(); Session session = SessionUtil.openSession(repository, Party.class, Person.class); // Persistence session.save(new Person("John", "Doe")); List<STMT> statements = IteratorAdapter.asList( repository.findStatements(null, new UID(TEST.NS, "displayName"), null, null, false)); assertEquals(1, statements.size()); STMT stmt = statements.get(0); assertEquals("John Doe", stmt.getObject().getValue()); // Retrieval session = SessionUtil.openSession(repository, Party.class, Person.class); Person person = session.findInstances(Person.class).get(0); assertEquals("John Doe", person.getDisplayName()); }