ProjectFilePairReleaseOcurrence { public void addVersionForFilePair(FilePair filePair, Version version) { addVersionForFilePair(filePair, version, 1); } ProjectFilePairReleaseOcurrence(Project project, List<Version> allVersions,
            Collection<FilterFilePairByReleaseOcurrence> filtersOccurrences,
            Collection<FilterByApriori> filtersByApriori);  ProjectFilePairReleaseOcurrence(Project project, List<Version> allVersions, int minFilePairOccurrences, int minOccurrencesInEachVersion,
            List<FilterFilePairByReleaseOcurrence> filtersOccurrences,
            Collection<FilterByApriori> filtersByApriori); static String getHeader(); void add(ProjectFilePairReleaseOcurrence versionSummary); void addPairFileForAprioriFilter(FilePair filePair, FilterByApriori filterByApriori); void addVersionForFilePair(FilePair filePair, Version version); void addVersionForFilePair(FilePair filePair, Version version, int quantity); boolean hasMinimumOccurrencesInOneVersion(FilePair filePair); int getOccurrences(FilePair filePair); boolean hasMinimumOccurrences(FilePair filePair); int getVersionSequenceOccurrences(FilePair filePair); FilePairOcurrencesGroup getFilePairOcurrencesGroup(); Map<FilePair, FilePairReleasesOccurenceCounter> getFilePairReleasesOccurenceCounter(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); String getDynamicHeader();  }
@Test public void testAddVersionForFilePair() { occurrences = new ProjectFilePairReleaseOcurrence(new Project("Test"), VersionTestHelper.getVersionsAsList("1.0", "1.1", "1.2", "1.3"), 1, 2, FilterFilePairByReleaseOcurrence.getSuggestedFilters(), FilterByApriori.getFiltersForExperiment1()); final FilePair filePairAB = new FilePair("A", "B"); final Version version10 = new Version("1.0"); occurrences.addVersionForFilePair(filePairAB, version10); Assert.assertEquals(1, occurrences.getOccurrences(filePairAB)); Assert.assertFalse(occurrences.hasMinimumOccurrencesInOneVersion(filePairAB)); occurrences.addVersionForFilePair(filePairAB, version10); Assert.assertEquals(2, occurrences.getOccurrences(filePairAB)); Assert.assertTrue(occurrences.hasMinimumOccurrencesInOneVersion(filePairAB)); Assert.assertTrue(occurrences.hasMinimumOccurrences(filePairAB)); }