### Question:
FlashMessages { @PostConstruct void init() { view.init(this); } @Inject  FlashMessages(final View view); HTMLElement getElement(); void onFlashMessageEvent(final @Observes FlashMessage flashMessage); void hideMessages();  }### Answer:
@Test public void testInit() { flashMessages.init(); verify(view).init(flashMessages); }