### Question:
Log4j2SingleKeySequenceSelector extends SingleKeySequenceSelector { @PluginBuilderFactory public static Log4j2SingleKeySequenceSelector.Builder newBuilder() { return new Log4j2SingleKeySequenceSelector.Builder(); } Log4j2SingleKeySequenceSelector(Builder builder); @PluginBuilderFactory static Log4j2SingleKeySequenceSelector.Builder newBuilder();  }### Answer:
@Test public void builderBuildsSuccessfully() { Log4j2SingleKeySequenceSelector.Builder builder = Log4j2SingleKeySequenceSelector.newBuilder() .withSequenceId(1); Log4j2SingleKeySequenceSelector keySequenceSelector = builder.build(); assertNotNull(keySequenceSelector); }
@Test public void builderThrowsOnSequenceIdLowerThanZero() { Log4j2SingleKeySequenceSelector.Builder builder = Log4j2SingleKeySequenceSelector.newBuilder() .withSequenceId(-1); expectedException.expect(ConfigurationException.class); expectedException.expectMessage("sequenceId must be higher than 0"); builder.build(); }
@Test public void builderThrowsOnSequenceIdEqualZero() { Log4j2SingleKeySequenceSelector.Builder builder = Log4j2SingleKeySequenceSelector.newBuilder() .withSequenceId(0); expectedException.expect(ConfigurationException.class); expectedException.expectMessage("sequenceId must be higher than 0"); builder.build(); }