ProgressImpl implements Progress { @Override public SortedSet<ProgressStep> getSteps() { return steps; }  @Override long getId(); @Override void setId(long id); @Override WorkflowName getWorkflowName(); @Override void setWorkflowName(WorkflowName workflowName); @Override User getUser(); @Override void setUser(User user); @Override Date getCreationTime(); @Override void setCreationTime(Date creationTime); @Override Date getLastModified(); @Override void setLastModified(Date lastModified); @Override SortedSet<ProgressStep> getSteps(); @Override void setSteps(Collection<ProgressStep> steps); @Override int hashCode(); @Override boolean equals(Object obj); @Override boolean isSaved();  }
@Test public void testSetUnorderedStepsThroughGetter() { ProgressStep step1 = makePoolProgressStep(1); ProgressStep step2 = makePoolProgressStep(2); progress.getSteps().add(step2); progress.getSteps().add(step1); List<ProgressStep> steps = new ArrayList<>(progress.getSteps()); assertEquals(2, steps.size()); assertEquals(1, steps.get(0).getStepNumber()); assertEquals(2, steps.get(1).getStepNumber()); }