### Question:
IbftConfigOptions { public int getGossipedHistoryLimit() { return JsonUtil.getInt(ibftConfigRoot, "gossipedhistorylimit", DEFAULT_GOSSIPED_HISTORY_LIMIT); } IbftConfigOptions(final ObjectNode ibftConfigRoot); long getEpochLength(); int getBlockPeriodSeconds(); int getRequestTimeoutSeconds(); int getGossipedHistoryLimit(); int getMessageQueueLimit(); int getDuplicateMessageLimit(); int getFutureMessagesLimit(); int getFutureMessagesMaxDistance(); Optional<String> getMiningBeneficiary(); BigInteger getBlockRewardWei(); static final IbftConfigOptions DEFAULT; }### Answer:
@Test public void shouldGetGossipedHistoryLimitFromConfig() { final IbftConfigOptions config = fromConfigOptions(singletonMap("GossipedHistoryLimit", 100)); assertThat(config.getGossipedHistoryLimit()).isEqualTo(100); }
@Test public void shouldFallbackToDefaultGossipedHistoryLimit() { final IbftConfigOptions config = fromConfigOptions(emptyMap()); assertThat(config.getGossipedHistoryLimit()).isEqualTo(EXPECTED_DEFAULT_GOSSIPED_HISTORY_LIMIT); }
@Test public void shouldGetDefaultGossipedHistoryLimitFromDefaultConfig() { assertThat(IbftConfigOptions.DEFAULT.getGossipedHistoryLimit()) .isEqualTo(EXPECTED_DEFAULT_GOSSIPED_HISTORY_LIMIT); }