### Question:
IbftConfigOptions { public int getRequestTimeoutSeconds() { return JsonUtil.getInt(ibftConfigRoot, "requesttimeoutseconds", DEFAULT_ROUND_EXPIRY_SECONDS); } 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 shouldGetRequestTimeoutFromConfig() { final IbftConfigOptions config = fromConfigOptions(singletonMap("RequestTimeoutSeconds", 5)); assertThat(config.getRequestTimeoutSeconds()).isEqualTo(5); }
@Test public void shouldFallbackToDefaultRequestTimeout() { final IbftConfigOptions config = fromConfigOptions(emptyMap()); assertThat(config.getRequestTimeoutSeconds()).isEqualTo(EXPECTED_DEFAULT_REQUEST_TIMEOUT); }
@Test public void shouldGetDefaultRequestTimeoutFromDefaultConfig() { assertThat(IbftConfigOptions.DEFAULT.getRequestTimeoutSeconds()) .isEqualTo(EXPECTED_DEFAULT_REQUEST_TIMEOUT); }