@Test
public void testCleanTheExpiredSequences() {

    //GIVEN
    descriptors.put("TestKey1", descriptor);
    List<WilmaSequence> sequences = new ArrayList<>();
    sequences.add(firstSequence);
    sequences.add(secondSequence);
    given(descriptor.getSequencesInCollection()).willReturn(sequences);
    given(firstSequence.isExpired(new Timestamp(1000L))).willReturn(false);
    given(secondSequence.isExpired(new Timestamp(1000L))).willReturn(true);
    //WHEN
    underTest.cleanTheExpiredSequences(descriptors);
    //THEN
    Assert.assertEquals(sequences.size(), 1);
}