public EventJournalConfig setTimeToLiveSeconds(int timeToLiveSeconds) {
        this.timeToLiveSeconds = checkNotNegative(timeToLiveSeconds, "timeToLiveSeconds can't be smaller than 0");
        return this;
    }
@Test(expected = UnsupportedOperationException.class)
    public void testReadOnlyClass_setTTL_throwsException() {
        getReadOnlyConfig().setTimeToLiveSeconds(20);
    }