FormLabelHelp extends Composite implements HasText { @Override public String getText() { return formLabel.getText(); } 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 getText() { Mockito.when(formLabel.getText()).thenReturn("testText"); assertEquals("testText", formLabelHelp.getText()); }