final RepositoryConnection connection = repositoryRDF.getConnection();
try {
final Facading facading = FacadingFactory.createFacading(connection);
URI a = connection.getValueFactory().createURI("http://localhost/account");
OnlineAccount account = facading.createFacade(a, OnlineAccount.class);
account.addChatId("foo");
Assert.assertThat(account.getChatId(), hasItem("foo"));
account.addChatId("bar");
Assert.assertThat(account.getChatId(), hasItems("foo", "bar"));
Assert.assertThat(account.getChatId(), hasItems("bar", "foo"));
} finally {
connection.close();
}
}