@Test
public void modifyWatchedFile_shouldUpdateConnectedModels() throws Exception {
File testconnectorFolder = new File(tmpFolder.getRoot(), "testconnector");
File testfile = new File(testconnectorFolder, "testfile");
ConnectorDescription desc = makeConnectorDescription(CSVParser.class, testfile);
connectorManager.create(desc);
File testconnectorFolder2 = new File(tmpFolder.getRoot(), "testconnector2");
File testfile2 = new File(testconnectorFolder2, "testfile");
ConnectorDescription desc2 = makeConnectorDescription(JSONParser.class, testfile2);
desc2.getAttributes().put("modelType", TestModel.class.getName());
connectorManager.create(desc2);
FileUtils.write(testfile, "42,\"foo\",7");
verify(persistenceService, timeout(2500)).commit(any(EKBCommit.class));
Thread.sleep(2000);
System.out.println("reading file back:\n" + FileUtils.readFileToString(testfile2));