### Question:
ResourceLocator { public Path getFile(ST_Loc stLoc) throws FileNotFoundException { String loc = stLoc.getLoc(); if (loc == null || loc.trim().equals("")) { throw new FileNotFoundException("路径为空（loc）"); } LinkedList<String> wd = new LinkedList<>(this.workDir); String fileName; int indexOf = loc.lastIndexOf('/'); if (indexOf != -1) { this.cd(wd, loc.substring(0, indexOf + 1)); fileName = loc.substring(indexOf + 1); } else { fileName = loc; } VirtualContainer vc = getContainer(wd); return vc.getFile(fileName); } 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 void getFile() { }