SimpleProvenanceService implements ProvenanceService { @Override public RepositoryConnection getConnection() { RepositoryConnection conn = repo.getConnection(); return new ReadOnlyRepositoryConnection(conn); }  @Override RepositoryConnection getConnection(); @Override Activity createActivity(ActivityConfig config); @Override void addActivity(Activity activity); @Override Optional<Activity> getActivity(Resource activityIRI); @Override void updateActivity(Activity newActivity); @Override void deleteActivity(Resource activityIRI);  }
@Test public void getConnectionTest() throws Exception { RepositoryConnection conn = service.getConnection(); assertTrue(conn instanceof ReadOnlyRepositoryConnection); }