@Test
public void testCollectInformationsWhenThereAreDescriptors() {

    //GIVEN
    Map<String, SequenceDescriptor> descriptors = new HashMap<>();
    descriptors.put("test", descriptor);
    Map<String, WilmaSequence> sequences = new HashMap<>();
    sequences.put("testKey", sequence);
    given(descriptor.getSequences()).willReturn(sequences);
    given(sequenceManager.getDescriptors()).willReturn(descriptors);
    //WHEN
    Map<String, Object> result = underTest.collectInformation();
    //THEN
    int sum = (int) result.get(SequenceInformationCollector.SUM_KEY);
    Assert.assertEquals(sum, 1);
    Map<String, Integer> groups = (Map<String, Integer>) result.get(SequenceInformationCollector.GROUPS_KEY);
    Assert.assertEquals(groups.size(), 1);
}