NodeLibrary originalLibrary = NodeLibrary.load(relativeImportFile, NodeRepository.of());
FunctionRepository repository = originalLibrary.getFunctionRepository();
assertTrue(repository.hasLibrary("relative"));
assertTrue(repository.hasFunction("relative/concat"));
NodeLibrary library = NodeLibrary.load("test", originalLibrary.toXml(), NodeRepository.of());
FunctionLibrary relativeLibrary = library.getFunctionRepository().getLibrary("relative");
assertEquals("python:src/test/files/relative.py", relativeLibrary.getLink(new File(userDir, "test.ndbx")));
assertEquals("python:relative.py", relativeLibrary.getLink(relativeImportFile));
}