@Test
public void getDefaultWidgets() {

    Widget defaultWidget = uiRegistry.getDefaultWidget(GroupItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Group.class)));
    defaultWidget = uiRegistry.getDefaultWidget(CallItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Text.class)));
    defaultWidget = uiRegistry.getDefaultWidget(ColorItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Colorpicker.class)));
    defaultWidget = uiRegistry.getDefaultWidget(ContactItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Text.class)));
    defaultWidget = uiRegistry.getDefaultWidget(DateTimeItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Text.class)));
    defaultWidget = uiRegistry.getDefaultWidget(DimmerItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Slider.class)));
    assertThat(((Slider) defaultWidget).isSwitchEnabled(), is(true));
    defaultWidget = uiRegistry.getDefaultWidget(ImageItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Image.class)));
    defaultWidget = uiRegistry.getDefaultWidget(LocationItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Mapview.class)));
    defaultWidget = uiRegistry.getDefaultWidget(PlayerItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Switch.class)));
    assertThat(((Switch) defaultWidget).getMappings(), hasSize(4));
    defaultWidget = uiRegistry.getDefaultWidget(RollershutterItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Switch.class)));
    defaultWidget = uiRegistry.getDefaultWidget(SwitchItem.class, ITEM_NAME);
    assertThat(defaultWidget, is(instanceOf(Switch.class)));
}