SipBuilder { public static String es(String str) { return str == null ? "" : StringEscapeUtils.escapeXml(str); }  static String es(String str); static String dt(Date date); String getTargetSection(Long targetInstanceOid); Map<String, String> buildSipSections(TargetInstance inst); String getProfileNoteSection(TargetInstance inst); boolean updateTargetReference(AbstractTarget target, Map<String,String> sipSections); String getTargetSection(TargetInstance inst); String getPermissionSection(Long targetInstanceOid); String getPermissionSection(TargetInstance inst); void setTargetInstanceManager(TargetInstanceManager targetInstanceManager); void setTargetManager(TargetManager targetManager);  }
@Test public final void testEs() { String str = null; assertEquals("", SipBuilder.es(str)); str = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><test id=\"1\"><!-- PRI_LOW = 1000; PRI_NRML = 100; PRI_HI = 0; --><priority>100</priority></test>"; assertEquals(StringEscapeUtils.escapeXml(str), SipBuilder.es(str)); }