@Test
public void getLabel_labelFromUIProvider() throws ItemNotFoundException {
Widget w = mock(Widget.class);
Item item = mock(Item.class);
ItemUIProvider provider = mock(ItemUIProvider.class);
uiRegistry.addItemUIProvider(provider);
when(provider.getLabel(anyString())).thenReturn("ProviderLabel");
when(w.getItem()).thenReturn("Item");
when(registry.getItem("Item")).thenReturn(item);
String label = uiRegistry.getLabel(w);
assertEquals("ProviderLabel", label);
uiRegistry.removeItemUIProvider(provider);