@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);
}