}
@Test
public void searchPath_toString() {
// relpath without basedir
SearchPath path = new SearchPath("abc", true);
assertEquals("relpath=abc, basedir=null", path.toString());
// relpath with basedir
path.init(srcdir.getAbsolutePath());
assertThat(path.toString(), containsAll("relpath=abc, basedir=", "config"));
// abspath
path = new SearchPath("abc", false);
assertEquals("abspath=abc", path.toString());
// abspath.init(srcdir) - no effect
path.init(srcdir.getAbsolutePath());
assertEquals("abspath=abc", path.toString());
}