@Test
public void testCreateEnvelopesDefault14Bands() throws Exception {

    Mockito.when(params.getConfiguration()).thenReturn(Default14BandEnvelopeJobConfiguration.getConfiguration());
    List<Waveform> waveforms = new ArrayList<>();
    waveforms = generateWaveforms();
    Result<List<Waveform>> stacks = envelopeCreationService.createEnvelopes(1l, waveforms, null, false);
    assertTrue(stacks.isSuccess());
    assertTrue(stacks.getResultPayload().isPresent());
    long eventCount = waveforms.stream().map(w -> w.getEvent().getEventId()).distinct().count();
    long bandCount = params.getConfiguration().getFrequencyBandConfiguration().size();
    long channelCount = waveforms.stream().map(w -> w.getStream().getChannelName()).distinct().count();
    assertEquals(bandCount * eventCount * channelCount, stacks.getResultPayload().get().stream().distinct().count());
}