@Test
public void checkDefaultDialogIsSetupCorrectly() throws Exception {

    showDialog();
    ((DialogFixture) windowFixture).requireModal();
    assertEquals(JCRSChooser.DEFAULT_TITLE, windowFixture.component().getTitle());
    // The text box should be editable and initially empty
    JTextComponentFixture textBox = windowFixture.textBox();
    assertNotNull(textBox);
    textBox.requireEditable();
    textBox.requireText("");
    // The list should have as many items as there are authority codes
    JListFixture list = windowFixture.list();
    assertNotNull(list);
    list.requireItemCount(CODES.size());
}