### Question:
ResourceLocator { public String toAbsolutePath(ST_Loc path) { if (path == null) { return pwd(); } return toAbsolutePath(path.getLoc()); } private  ResourceLocator();  ResourceLocator(OFDDir ofdDir);  ResourceLocator(VirtualContainer vc); ResourceLocator save(); ResourceLocator restore(); String toAbsolutePath(ST_Loc path); String toAbsolutePath(String path); ResourceLocator restWd(); ResourceLocator cd(VirtualContainer vc); ResourceLocator cd(String path); ResourceLocator cd(LinkedList<String> workDir, String path); boolean exist(LinkedList<String> workDir); boolean dirExit(LinkedList<String> workDir); String pwd(); String pwd(List<String> workDir); ST_Loc getAbsTo(ST_Loc to); R get(ST_Loc loc, Function<Element, R> mapper); R get(String loc, Function<Element, R> mapper); Path getFile(ST_Loc stLoc); VirtualContainer getContainer(LinkedList<String> workDir); VirtualContainer getContainer(String containerPath); static Pattern PtDoc; static Pattern PtSigns; static Pattern PtSign; static Pattern PtPages; static Pattern PtPage; static Pattern PtPageRes; static Pattern PtDocRes; }### Answer:
@Test public void toAbsolutePath() throws IOException { try (OFDReader reader = new OFDReader(src)) { OFDDir ofdDir = reader.getOFDDir(); ResourceLocator rl = new ResourceLocator(ofdDir); rl.cd("/Doc_0/Pages/Page_0"); String absPath = rl.toAbsolutePath("../../Signs/Signatures.xml"); System.out.println(absPath); } }