Util { public static native String Encode(String s);  static native String Encode(String s); static native String EncodeId(Id id); static native String NamingJoin(List<String> elements);  }
@Test public void testEncode() { assertEquals("string", Util.Encode("string")); assertEquals("part1%2Fpart2", Util.Encode("part1/part2")); assertEquals("part1%25part2", Util.Encode("part1%part2")); }