GuidedDecisionTableAccordionItem { public void init(final String parentId, final Type type, final Widget content) { this.parentId = parentId; this.type = type; this.content = content; refreshView(); } @Inject  GuidedDecisionTableAccordionItem(final GuidedDecisionTableAccordionItem.View view,
                                            final TranslationService translationService); @PostConstruct void setup(); GuidedDecisionTableAccordionItem.View getView(); void init(final String parentId,
                     final Type type,
                     final Widget content); Type getType(); void setOpen(final boolean isOpen);  }
@Test public void testInit() throws Exception { final GuidedDecisionTableAccordionItem.Type type = GuidedDecisionTableAccordionItem.Type.CONDITION; final Widget widget = mock(Widget.class); item.init("uuid", type, widget); verify(item).refreshView(); assertEquals(type, item.getType()); assertEquals(widget, item.getContent()); }