void () { getConfiguration().addExcludedFile(myTempFile, getType()); assertEquals(myTempFile.getUrl(), assertOneElement(getState().getFiles()).getUrl()); getConfiguration().addExcludedFile(myTempDir, null); assertEquals(myTempDir.getUrl(), assertOneElement(getState().getFiles()).getUrl()); }