### Question:
SignalingOptions { public void setMaxMessageSize(int maxMessageSize) { setMaxMessageSize(Long.valueOf(maxMessageSize)); }  static SignalingOptions capabilities(int maxMessageSize, boolean useBlockwiseTransfer); @Override String toString(); Long getMaxMessageSize(); void setMaxMessageSize(int maxMessageSize); void setMaxMessageSize(Long maxMessageSize); Boolean getBlockWiseTransfer(); void setBlockWiseTransfer(Boolean blockWiseTransfer); Boolean getCustody(); void setCustody(Boolean custody); String getAlternativeAddress(); void setAlternativeAddress(String alternativeAddress); Integer getHoldOff(); void setHoldOff(Integer holdOff); Integer getBadCsmOption(); void setBadCsmOption(Integer badCsmOption); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testTooBigMaxMessageSize() throws IOException, CoapException { SignalingOptions options = new SignalingOptions(); expectedEx.expect(IllegalArgumentException.class); expectedEx.expectMessage("Illegal Max-Message-Size argument: "); options.setMaxMessageSize(0x100000000L); }
@Test public void testNegativeMaxMessageSize() throws IOException, CoapException { SignalingOptions options = new SignalingOptions(); expectedEx.expect(IllegalArgumentException.class); expectedEx.expectMessage("Illegal Max-Message-Size argument: -1"); options.setMaxMessageSize(-1L); }