### Question:
IbftConfigOptions { public int getMessageQueueLimit() { return JsonUtil.getInt(ibftConfigRoot, "messagequeuelimit", DEFAULT_MESSAGE_QUEUE_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 shouldGetMessageQueueLimitFromConfig() { final IbftConfigOptions config = fromConfigOptions(singletonMap("MessageQueueLimit", 100)); assertThat(config.getMessageQueueLimit()).isEqualTo(100); }
@Test public void shouldFallbackToDefaultMessageQueueLimit() { final IbftConfigOptions config = fromConfigOptions(emptyMap()); assertThat(config.getMessageQueueLimit()).isEqualTo(EXPECTED_DEFAULT_MESSAGE_QUEUE_LIMIT); }
@Test public void shouldGetDefaultMessageQueueLimitFromDefaultConfig() { assertThat(IbftConfigOptions.DEFAULT.getMessageQueueLimit()) .isEqualTo(EXPECTED_DEFAULT_MESSAGE_QUEUE_LIMIT); }