FeatureEncoderUtil { public static String escape(String source) { return escape(source, new char[0]); }  static String escape(String source); static String escape(String source, char[] escapeCharacters);  }
@Test public void testEscape() { assertEquals("asdf=asdf", FeatureEncoderUtil.escape("asdf=asdf")); assertEquals("asdf%U003Dasdf", FeatureEncoderUtil.escape("asdf=asdf", new char[] { '=' })); assertEquals("%U0025hello%U0025", FeatureEncoderUtil.escape("%hello%")); assertEquals("%U0025hello%U0025", FeatureEncoderUtil.escape("%hello%", new char[] { '5' })); assertEquals("%U0025%U0025", FeatureEncoderUtil.escape("%%", new char[] { '%' })); }