DriverDetailsDialog { void open() { getDialog().show(); } DriverDetailsDialog( Shell parent );  static final String XUL_DIALOG_ID; }
@Test public void testOpen() throws Exception { DriverDetailsDialog dialog = mock( DriverDetailsDialog.class ); doCallRealMethod().when( dialog ).open(); SwtDialog swtDialog = mock( SwtDialog.class ); doReturn( swtDialog ).when( dialog ).getDialog(); dialog.open(); verify( dialog ).getDialog(); verify( swtDialog ).show(); }