IgnoreDuplicatesCollector implements ScriptCollector { @Override public Collection<ScriptFile> getScriptFiles() { return scriptFiles; }  @Override void collect(ScriptFile scriptFile); @Override Collection<ScriptFile> getScriptFiles();  }
@Test public void shouldReturnEmptyCollectionWhenNoScriptFileGiven() { assertThat(scriptCollector.getScriptFiles(), is(not(nullValue()))); assertThat(scriptCollector.getScriptFiles(), is(empty())); }