CommonModalBuilder { public BaseModal build() { return getModal(); } CommonModalBuilder(); CommonModalBuilder addHeader(String title); CommonModalBuilder addBody(HTMLElement element); CommonModalBuilder addBody(elemental2.dom.HTMLElement element); CommonModalBuilder addFooter(ModalFooter footer); CommonModalBuilder addFooter(HTMLElement element); CommonModalBuilder addFooter(final elemental2.dom.HTMLElement htmlElement); BaseModal build();  }
@Test public void testBuild() { doReturn(modalMock).when(builder).getModal(); final BaseModal modal = builder.build(); assertEquals(modalMock, modal); }