@Test
public void non_confirmable_message_writing() {

    CoapMessage msg = new CoapMessage(1, MessageType.NON_CONFIRMABLE, 1, 1234, "token".getBytes(), null,
            "payload".getBytes());
    WriteRequest writeRequest = new DefaultWriteRequest(msg);
    filter.messageWriting(session, writeRequest, writeController);
    // verify
    verify(writeController).callWriteNextFilter(writeRequest);
    Mockito.verifyNoMoreInteractions(writeController);
}