### Question:
IbftConfigOptions { public int getFutureMessagesMaxDistance() { return JsonUtil.getInt( ibftConfigRoot, "futuremessagesmaxdistance", DEFAULT_FUTURE_MESSAGES_MAX_DISTANCE); } 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 shouldGetFutureMessagesMaxDistanceFromConfig() { final IbftConfigOptions config = fromConfigOptions(singletonMap("FutureMessagesMaxDistance", 50)); assertThat(config.getFutureMessagesMaxDistance()).isEqualTo(50); }
@Test public void shouldFallbackToDefaultFutureMessagesMaxDistance() { final IbftConfigOptions config = fromConfigOptions(emptyMap()); assertThat(config.getFutureMessagesMaxDistance()) .isEqualTo(EXPECTED_DEFAULT_FUTURE_MESSAGES_MAX_DISTANCE); }
@Test public void shouldGetDefaultFutureMessagesMaxDistanceFromDefaultConfig() { assertThat(IbftConfigOptions.DEFAULT.getFutureMessagesMaxDistance()) .isEqualTo(EXPECTED_DEFAULT_FUTURE_MESSAGES_MAX_DISTANCE); }