### Question:
CliqueConfigOptions { public long getEpochLength() { return JsonUtil.getLong(cliqueConfigRoot, "epochlength", DEFAULT_EPOCH_LENGTH); } CliqueConfigOptions(final ObjectNode cliqueConfigRoot); long getEpochLength(); int getBlockPeriodSeconds(); static final CliqueConfigOptions DEFAULT; }### Answer:
@Test public void shouldGetEpochLengthFromConfig() { final CliqueConfigOptions config = fromConfigOptions(singletonMap("EpochLength", 10_000)); assertThat(config.getEpochLength()).isEqualTo(10_000); }
@Test public void shouldFallbackToDefaultEpochLength() { final CliqueConfigOptions config = fromConfigOptions(emptyMap()); assertThat(config.getEpochLength()).isEqualTo(EXPECTED_DEFAULT_EPOCH_LENGTH); }
@Test public void shouldGetDefaultEpochLengthFromDefaultConfig() { assertThat(CliqueConfigOptions.DEFAULT.getEpochLength()) .isEqualTo(EXPECTED_DEFAULT_EPOCH_LENGTH); }