void () { getConfiguration().addExcludedFile(myTempDir, null); getConfiguration().addExcludedFile(myTempFile, null); assertEquals(myTempDir.getUrl(), assertOneElement(getState().getFiles()).getUrl()); getConfiguration().addExcludedFile(myTempFile, getType()); assertEquals(myTempDir.getUrl(), assertOneElement(getState().getFiles()).getUrl()); getConfiguration().addExcludedFile(myTempDir, getType()); final ExcludedFileState state = assertOneElement(getState().getFiles()); assertEquals(myTempDir.getUrl(), state.getUrl()); assertNull(state.getFrameworkType()); }