RegexMountPointResolvedDstPathReplaceInterceptor implements RegexMountPointInterceptor { @Override public String interceptSource(String source) { return source; } RegexMountPointResolvedDstPathReplaceInterceptor(String srcRegex,
      String replaceString); String getSrcRegexString(); String getReplaceString(); Pattern getSrcRegexPattern(); @Override void initialize(); @Override String interceptSource(String source); @Override String interceptResolvedDestPathStr(
      String parsedDestPathStr); @Override Path interceptRemainingPath(Path remainingPath); @Override RegexMountPointInterceptorType getType(); @Override String serializeToString(); static RegexMountPointResolvedDstPathReplaceInterceptor deserializeFromString(String serializedString);  }
@Test public void testInterceptSource() { String srcRegex = "word1"; String replaceString = "word2"; RegexMountPointResolvedDstPathReplaceInterceptor interceptor = new RegexMountPointResolvedDstPathReplaceInterceptor(srcRegex, replaceString); String sourcePath = "/a/b/l3/dd"; Assert.assertEquals(sourcePath, interceptor.interceptSource(sourcePath)); }