@Test
public void getLabelLabelWithStaticValue() {

    String testLabel = "Label [value]";
    when(widget.getLabel()).thenReturn(testLabel);
    String label = uiRegistry.getLabel(widget);
    assertEquals("Label [value]", label);
}