### Question:
AlreadyRanChangeSetFilter extends RanChangeSetFilter { public boolean accepts(ChangeSet changeSet) { return getRanChangeSet(changeSet) != null; } AlreadyRanChangeSetFilter(List<RanChangeSet> ranChangeSets); boolean accepts(ChangeSet changeSet);  }### Answer:
@Test public void accepts_noneRun() { AlreadyRanChangeSetFilter filter = new AlreadyRanChangeSetFilter(new ArrayList<RanChangeSet>()); assertFalse(filter.accepts(new ChangeSet("1", "testAuthor", false, false, "path/changelog",null, null))); }
@Test public void accepts() { ArrayList<RanChangeSet> ranChanges = new ArrayList<RanChangeSet>(); ranChanges.add(new RanChangeSet("path/changelog", "1", "testAuthor", CheckSum.parse("12345"), new Date(), null, null)); ranChanges.add(new RanChangeSet("path/changelog", "2", "testAuthor", CheckSum.parse("12345"), new Date(), null, null)); AlreadyRanChangeSetFilter filter = new AlreadyRanChangeSetFilter(ranChanges); assertTrue(filter.accepts(new ChangeSet("1", "testAuthor", false, false, "path/changelog", null, null))); assertTrue(filter.accepts(new ChangeSet("1", "testAuthor", true, false, "path/changelog", null, null))); assertTrue(filter.accepts(new ChangeSet("1", "testAuthor", false, true, "path/changelog", null, null))); assertFalse(filter.accepts(new ChangeSet("3", "testAuthor", false, false, "path/changelog", null, null))); assertFalse(filter.accepts(new ChangeSet("1", "otherAuthor", false, false, "path/changelog", null, null))); assertFalse(filter.accepts(new ChangeSet("1", "testAuthor", false, false, "other/changelog", null, null))); }