@Nonnull
    public InstanceConfig setBackupCount(int newBackupCount) {
        checkBackupCount(newBackupCount, 0);
        this.backupCount = newBackupCount;
        return this;
    }
@Test
    public void when_TooBigBackupCount_thenThrowsException() {
        // When
        InstanceConfig instanceConfig = new InstanceConfig();

        // Then
        Assert.assertThrows(IllegalArgumentException.class, () -> instanceConfig.setBackupCount(10));
    }