@Test
public void showDefaultDialog() throws Exception {

    showDialog(TITLE);
    assertEquals(TITLE, windowFixture.component().getTitle());
    
    // check text area is present and correct size
    JTextComponentFixture textBox = windowFixture.textBox();
    assertTrue(textBox.component() instanceof JTextArea);
    JTextArea textArea = (JTextArea) textBox.component();
    assertEquals(JTextReporter.DEFAULT_TEXTAREA_ROWS, textArea.getRows());
    assertEquals(JTextReporter.DEFAULT_TEXTAREA_COLS, textArea.getColumns());
    
    // check all buttons are present
    getButton("Copy to clipboard");
    getButton("Save...");
    getButton("Clear");
    getButton("Close");
    
    // check dialog state
    DialogFixture df = (DialogFixture) windowFixture;
    
    boolean expectModal = (JTextReporter.DEFAULT_FLAGS & JTextReporter.FLAG_MODAL) > 0;
    assertEquals(expectModal, df.component().isModal());
    
    boolean expectResizable = (JTextReporter.DEFAULT_FLAGS & JTextReporter.FLAG_RESIZABLE) > 0;
    assertEquals(expectResizable, df.component().isResizable());
    
    boolean expectAlwaysOnTop = (JTextReporter.DEFAULT_FLAGS & JTextReporter.FLAG_ALWAYS_ON_TOP) > 0;
    assertEquals(expectAlwaysOnTop, df.component().isAlwaysOnTop());
}