@Test
public void testCreateNewSequence() {

    //GIVEN
    String testKey = "TestKey";
    String logggerId = "testId";
    given(request.getWilmaMessageId()).willReturn(logggerId);
    //WHEN
    WilmaSequence result = underTest.createNewSequence(testKey, request, 1000L);
    //THEN
    Assert.assertEquals(result.getSequenceKey(), testKey);
    Assert.assertFalse(result.isExpired(new Timestamp(1000L)));
    RequestResponsePair firstPair = result.getPairs().get(logggerId);
    Assert.assertEquals(firstPair.getRequest(), request);
}