IdBatchAndWaitTime newIdBaseLocal(int batchSize) {
        return newIdBaseLocal(Clock.currentTimeMillis(), getNodeId(), batchSize);
    }
@Test
    public void when_currentTimeAfterAllowedRange_then_fail() {
        gen.newIdBaseLocal(DEFAULT_EPOCH_START + (1L << DEFAULT_BITS_TIMESTAMP) - 1, 0, 1);
        assertThatThrownBy(() -> gen.newIdBaseLocal(DEFAULT_EPOCH_START + (1L << DEFAULT_BITS_TIMESTAMP), 0, 1))
                .isInstanceOf(HazelcastException.class)
                .hasMessage("Current time out of allowed range");
    }