### Question:
CliqueConfigOptions { public int getBlockPeriodSeconds() { return JsonUtil.getInt(cliqueConfigRoot, "blockperiodseconds", DEFAULT_BLOCK_PERIOD_SECONDS); } CliqueConfigOptions(final ObjectNode cliqueConfigRoot); long getEpochLength(); int getBlockPeriodSeconds(); static final CliqueConfigOptions DEFAULT; }### Answer:
@Test public void shouldGetBlockPeriodFromConfig() { final CliqueConfigOptions config = fromConfigOptions(singletonMap("BlockPeriodSeconds", 5)); assertThat(config.getBlockPeriodSeconds()).isEqualTo(5); }
@Test public void shouldFallbackToDefaultBlockPeriod() { final CliqueConfigOptions config = fromConfigOptions(emptyMap()); assertThat(config.getBlockPeriodSeconds()).isEqualTo(EXPECTED_DEFAULT_BLOCK_PERIOD); }
@Test public void shouldGetDefaultBlockPeriodFromDefaultConfig() { assertThat(CliqueConfigOptions.DEFAULT.getBlockPeriodSeconds()) .isEqualTo(EXPECTED_DEFAULT_BLOCK_PERIOD); }