@Test
public void testSerialization() {

  String srcRegex = "word1";
  String replaceString = "word2";
  String serializedString = createSerializedString(srcRegex, replaceString);
  RegexMountPointResolvedDstPathReplaceInterceptor interceptor =
      new RegexMountPointResolvedDstPathReplaceInterceptor(srcRegex,
          replaceString);
  Assert.assertEquals(interceptor.serializeToString(), serializedString);
}