### Question:
GUIFactory { public static String createToolTip(final Note note) { if (note == null) { return null; } return "<html><b>From " + note.getSource().toString() + "</b><br>\n" + GUIHelper.wordWrap(note.getText(), false) + "</html>"; }  static JButton createPlusButton(final String toolTipText); static JButton createIconButton(final String iconName, final String toolTipText); static void suppressErrors(boolean suppress); static JButton createLabeledIconButton(final String label, final String iconName); static JComponent createOutcomeMeasureLabelWithIcon(final Variable e, final boolean isPrimary); static JComponent buildStudyPanel(final StudyListPresentation studies, final AddisWindow parent); static JLabel buildSiteLink(); static JComboBox createDrugSelector(final AbstractValueModel drugModel,
			final Domain domain); static void configureJFreeChartLookAndFeel(); static String createToolTip(final Note note);  }### Answer:
@Test public void testCreateToolTip() { assertEquals( "<html><b>From ClinicalTrials.gov</b><br>\ntest</html>", GUIFactory.createToolTip(new Note(Source.CLINICALTRIALS, "test"))); }
@Test public void testCreateToolTipHTMLEntities() { assertEquals( "<html><b>From ClinicalTrials.gov</b><br>\ntest &gt; you</html>", GUIFactory.createToolTip(new Note(Source.CLINICALTRIALS, "test > you"))); }