public String createULID(Message message) {
        checkTimestamp(message.getTimestamp().getMillis());
        try {
            return createULID(message.getTimestamp().getMillis(), message.getSequenceNr());
        } catch (Exception e) {
            LOG.error("Exception while creating ULID.", e);
            return ulid.nextULID(message.getTimestamp().getMillis());
        }
    }
@Test
    public void intMaxGenerate() {
        final MessageULIDGenerator generator = new MessageULIDGenerator(new ULID());

        final long ts = Tools.nowUTC().getMillis();

        ULID.Value parsedULID = ULID.parseULID(generator.createULID(ts, Integer.MAX_VALUE));

        assertThat(extractSequenceNr(parsedULID)).isEqualTo(Integer.MAX_VALUE);
    }