// 4. Display furniture dialog
JComponentTester tester = new JComponentTester();
JDialog furnitureDialog = showHomeFurniturePanel(preferences, controller, tester);
// Retrieve HomeFurniturePanel components
HomeFurniturePanel panel = (HomeFurniturePanel)TestUtilities.findComponent(
furnitureDialog, HomeFurniturePanel.class);
JTextField nameTextField = (JTextField)TestUtilities.getField(panel, "nameTextField");
JSpinner xSpinner = (JSpinner)TestUtilities.getField(panel, "xSpinner");
JSpinner ySpinner = (JSpinner)TestUtilities.getField(panel, "ySpinner");
assertEquals("Wrong name", piece1.getName(), nameTextField.getText());