### Question:
SignalingOptions { public void setHoldOff(Integer holdOff) { if (maxMessageSize != null || blockWiseTransfer != null || custody != null || badCsmOption != null) { throw new IllegalStateException("Other than 7.04 specific signaling option already set"); } if (holdOff != null && (holdOff < 0 || holdOff > 0xFFF)) { throw new IllegalArgumentException("Illegal Hold-Off argument: " + holdOff); } this.holdOff = holdOff; }  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 testTooBigHoldOff() throws IOException, CoapException { SignalingOptions options = new SignalingOptions(); expectedEx.expect(IllegalArgumentException.class); expectedEx.expectMessage("Illegal Hold-Off argument: "); options.setHoldOff(0x1FFF); }
@Test public void testNegativeHoldOff() throws IOException, CoapException { SignalingOptions options = new SignalingOptions(); expectedEx.expect(IllegalArgumentException.class); expectedEx.expectMessage("Illegal Hold-Off argument: -5"); options.setHoldOff(-5); }