    @Test
    public void if_there_are_notes_with_the_same_number_of_occurrences_one_of_them_is_returned() {

        List<PitchDifference> samples = new ArrayList<>();

        samples.add(new PitchDifference(G3, 2D));
        samples.add(new PitchDifference(E2, 2D));
        samples.add(new PitchDifference(B3, 3D));
        samples.add(new PitchDifference(E2, 2D));
        samples.add(new PitchDifference(B3, 3D));

        Note note = extractMostFrequentNote(samples);

        assertThat(note.getName(), either(is(E2.getName())).or(is(B3.getName())));
    }