### Question:
IbftConfigOptions { public int getFutureMessagesLimit() { return JsonUtil.getInt(ibftConfigRoot, "futuremessageslimit", DEFAULT_FUTURE_MESSAGES_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 shouldGetFutureMessagesLimitFromConfig() { final IbftConfigOptions config = fromConfigOptions(singletonMap("FutureMessagesLimit", 50)); assertThat(config.getFutureMessagesLimit()).isEqualTo(50); }
@Test public void shouldFallbackToDefaultFutureMessagesLimit() { final IbftConfigOptions config = fromConfigOptions(emptyMap()); assertThat(config.getFutureMessagesLimit()).isEqualTo(EXPECTED_DEFAULT_FUTURE_MESSAGES_LIMIT); }
@Test public void shouldGetDefaultFutureMessagesLimitsFromDefaultConfig() { assertThat(IbftConfigOptions.DEFAULT.getFutureMessagesLimit()) .isEqualTo(EXPECTED_DEFAULT_FUTURE_MESSAGES_LIMIT); }