JDialog confirmDeleteCatalogSelectionDialog = (JDialog)new BasicFinder().find(frame,
new ClassMatcher (JDialog.class, true));
// Click on Ok in dialog box
final JOptionPane optionPane = (JOptionPane)TestUtilities.findComponent(
confirmDeleteCatalogSelectionDialog, JOptionPane.class);
tester.invokeAndWait(new Runnable() {
public void run() {
// Select delete option to hide dialog box in Event Dispatch Thread
optionPane.setValue(preferences.getLocalizedString(
HomePane.class, "confirmDeleteCatalogSelection.delete"));
}