### Question:
ChangeLogSet extends hudson.scm.ChangeLogSet<ChangeSet> { public Iterator<ChangeSet> iterator() { return changesets.iterator(); } ChangeLogSet(final Run<?, ?> build, final RepositoryBrowser<?> browser, final List<ChangeSet> changesets); @Deprecated /* TODO: Used by TeamSystemWebAccessBrowserTest, should update to use non-deprecated method instead */  ChangeLogSet(final AbstractBuild build, final ChangeSet[] changesetArray);  ChangeLogSet(final Run<?, ?> build, final RepositoryBrowser<?> browser, final ChangeSet[] changesetArray); @Override boolean isEmptySet(); Iterator<ChangeSet> iterator();  }### Answer:
@Test public void assertChangeSetsHaveLogSetParent() throws Exception { List<ChangeSet> changesets = new ArrayList<ChangeSet>(); changesets.add(new ChangeSet("version", null, "user", "comment")); ChangeLogSet logset = new ChangeLogSet(null, null, changesets); ChangeSet changeset = logset.iterator().next(); assertNotNull("Log set parent was null change set", changeset.getParent()); }