FormLabelHelp extends Composite implements HasText { public void setHelpContent(final String content) { if (content != null) { getHelpIcon().setHelpContent(content); } } FormLabelHelp();   FormLabelHelp(FormLabel formLabel,
                  FlowPanel panel); void setHelpTitle(final String title); void setHelpContent(final String content); @Override String getText(); @Override void setText(final String text); void setFor(final String forValue); void setShowRequiredIndicator(final boolean required);  }
@Test public void setHelpContentNull() { Mockito.reset(panel); formLabelHelp.setHelpContent(null); verify(panel, times(0)).add(isA(HelpIcon.class)); }
@Test public void setHelpContentNotNull() { Mockito.reset(panel); formLabelHelp.setHelpContent("testContent"); verify(panel).add(isA(HelpIcon.class)); }