Bs3Modal extends Modal { protected void setup() { this.add(body); this.setDataBackdrop(ModalBackdrop.STATIC); this.setFade(true); this.setRemoveOnHide(true); this.getElement().setAttribute(Attributes.ROLE, "dialog"); this.getElement().setAttribute(Attributes.TABINDEX, "-1"); this.addStyleName(WorkbenchResources.INSTANCE.CSS().modal()); this.setId(DOM.createUniqueId()); } Bs3Modal(); void show(final Command afterShown,
                     final Command afterClosed); @Override void show(); void setContent(IsWidget content); void setModalTitle(final String title); void setFooterContent(IsWidget content); void setBodyHeight(int height);  }
@Test public void testDefaultSettings() { modal.setup(); verify(modal).setDataBackdrop(ModalBackdrop.STATIC); verify(modal).setFade(true); verify(modal).setId(anyString()); verify(modal).setRemoveOnHide(true); }