@Test
public void addActivityTest() throws Exception {

    // Setup:
    Activity activity = activityFactory.createNew(activityIRI);
    service.addActivity(activity);
    try (RepositoryConnection conn = repo.getConnection()) {
        activity.getModel().forEach(statement -> conn.contains(statement.getSubject(), statement.getPredicate(), statement.getObject()));
    }
}