@Test
public void builderThrowsOnSequenceIdLowerThanZero() {

    // given
    Log4j2SingleKeySequenceSelector.Builder builder = Log4j2SingleKeySequenceSelector.newBuilder()
            .withSequenceId(-1);
    expectedException.expect(ConfigurationException.class);
    expectedException.expectMessage("sequenceId must be higher than 0");
    // when
    builder.build();
}