### Question:
TransactionManager { public void setMaximumEndpointQueueSize(int maximumEndpointQueueSize) { if (maximumEndpointQueueSize < 1 || maximumEndpointQueueSize > 65536) { throw new IllegalArgumentException("Endpoint queue size should be in range 1..65536"); } this.maximumEndpointQueueSize = maximumEndpointQueueSize; }  void setMaximumEndpointQueueSize(int maximumEndpointQueueSize); @SuppressWarnings("PMD.PrematureDeclaration") //false positive boolean addTransactionAndGetReadyToSend(CoapTransaction transaction, boolean forceAdd); Optional<CoapTransaction> removeAndLock(CoapTransactionId transId); Optional<CoapTransaction> unlockOrRemoveAndGetNext(CoapTransactionId transId); int getNumberOfTransactions(); Optional<CoapTransaction> findMatchAndRemoveForSeparateResponse(CoapPacket req); Collection<CoapTransaction> findTimeoutTransactions(final long currentTime); void close();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void test_tooSmallQueueValue() { transMgr.setMaximumEndpointQueueSize(0); }
@Test(expected = IllegalArgumentException.class) public void test_tooBigQueueValue() { transMgr.setMaximumEndpointQueueSize(65537); }
@Test public void test_normalQueueValue() { transMgr.setMaximumEndpointQueueSize(1); transMgr.setMaximumEndpointQueueSize(100); transMgr.setMaximumEndpointQueueSize(65536); }