public static RegexMountPointResolvedDstPathReplaceInterceptor
      deserializeFromString(String serializedString) {
    String[] strings = serializedString
        .split(Character.toString(RegexMountPoint.INTERCEPTOR_INTERNAL_SEP));
    // We'll assume there's no ':' in the regex for the moment.
    if (strings.length != 3) {
      return null;
    }
    //The format should be like replaceresolvedpath:wordToReplace:replaceString
    return new RegexMountPointResolvedDstPathReplaceInterceptor(strings[1],
        strings[2]);
  }
@Test
  public void testDeserializeFromStringBadCase() throws IOException {
    String srcRegex = "-";
    String replaceString = "_";
    String serializedString = createSerializedString(srcRegex, replaceString);
    serializedString = serializedString + ":ddd";
    RegexMountPointResolvedDstPathReplaceInterceptor interceptor =
        RegexMountPointResolvedDstPathReplaceInterceptor
            .deserializeFromString(serializedString);
    Assert.assertNull(interceptor);
  }