SipBuilder { public String getProfileNoteSection(TargetInstance inst) { StringBuffer buff = new StringBuffer(); buff.append("<wct:ProfileNote>"); buff.append(es(inst.getTarget().getProfileNote())); buff.append("</wct:ProfileNote>"); return buff.toString(); }  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 testGetProfileNoteSection() { this.testSetTargetInstanceManager(); this.testSetTargetManager(); try { String expectedOutput = "<wct:ProfileNote></wct:ProfileNote>"; TargetInstance ti = targetInstanceManager.getTargetInstance(5001L); String profileNoteSection = testInstance.getProfileNoteSection(ti); assertNotNull(profileNoteSection); assertEquals(expectedOutput, profileNoteSection); } catch(Exception e) { fail(e.getMessage()); } }