@Test
public void testRefreshView() throws Exception {

    final GuidedDecisionTableAccordionItem.Type type = GuidedDecisionTableAccordionItem.Type.CONDITION;
    final String title = "title";
    final Widget widget = mock(Widget.class);
    when(item.getType()).thenReturn(type);
    when(item.getTitle()).thenReturn(title);
    when(item.getContent()).thenReturn(widget);
    item.refreshView();
    verify(view).setItemId(anyString());
    verify(view).setTitle(title);
    verify(view).setContent(widget);
}