WizardPage extends JPanel { protected Set<Component> getNamedComponents() { return _namedComponents; } WizardPage(String title, String description); final String getId(); String getTitle(); String getDescription(); void updateSettings(WizardSettings settings); void rendering(List<WizardPage> path, WizardSettings settings); @Override String toString(); boolean onNext(WizardSettings settings); boolean onPrev(WizardSettings settings); WizardController getController();  }
@Test public void testGetNamedComponents_countComponents() { WizardPage page = new TestWizardPage("Test Page",""); Set<Component> components = page.getNamedComponents(); Assert.assertEquals("wrong number of named components", 4, components.size()); }