}
@Test
public void saveRdfServiceTest() throws JSONException, IOException{
String id = "rdf-test";
ServiceRegistry registry = new ServiceRegistry(new GRefineJsonUtilitiesImpl(),null);
GRefineServiceManager manager = new GRefineServiceManager(registry, dir);
Model m = ModelFactory.createDefaultModel();
ReconciliationService service = new RdfReconciliationService(id,id, new QueryEndpointImpl(new LarqSparqlQueryFactory(),
new DumpQueryExecutor(m)), 0);
manager.addAndSaveService(service);
assertTrue(registry.hasService(id));
//verify service is saved
registry = new ServiceRegistry(new GRefineJsonUtilitiesImpl(),null);
//verify no service
assertFalse(registry.hasService(id));
File file = new File(dir,"services");
//verify saved