@Test
public void testRuleInheritanceWidget() {

    final FlowPanel expectedPanel = mock(FlowPanel.class);
    final Label label = mock(Label.class);
    final Widget widget = mock(Widget.class);
    doReturn(expectedPanel).when(presenter).makeFlowPanel();
    doReturn(label).when(presenter).ruleInheritanceLabel();
    doReturn(widget).when(presenter).ruleSelector();
    final Widget actualPanel = presenter.ruleInheritanceWidget();
    verify(expectedPanel).setStyleName(GuidedDecisionTableResources.INSTANCE.css().ruleInheritance());
    verify(expectedPanel).add(label);
    verify(expectedPanel).add(widget);
    assertEquals(expectedPanel, actualPanel);
}