### Question:
DefaultWizardStepListModel implements WizardStepListModel { @Override public final int getStepCount() { return myStepTitles.size(); } DefaultWizardStepListModel(List<? extends String> stepTitles, int initialStep);  DefaultWizardStepListModel(List<? extends String> stepTitles, String initialStepTitle); @Override boolean allStepsAreValid(); @Override void decrementStep(); @Override ChangeSupport<WizardStepListModelChangeListener> getChangeSupport(); @Override int getCurrentStep(); @Override String getCurrentStepTitle(); @Override final int getStepCount(); @Override StepState getStepState(int step); @Override StepState getStepState(String stepTitle); @Override String getStepTitle(int index); @Override List<? extends String> getStepTitles(); @Override void incrementStep(); @Override final void setCurrentStep(int step); @Override final void setCurrentStep(String stepTitle); @Override void refreshCurrentStep(); @Override void setStepState(int step, StepState state); @Override void setStepState(String stepTitle, StepState state);  }### Answer:
@Test public void testGetStepCount() { List<? extends String> steps = Arrays.asList(STEP1, STEP2, STEP3); DefaultWizardStepListModel model = new DefaultWizardStepListModel(steps, 2); Assert.assertEquals(3, model.getStepCount()); }