@Test
public void shouldResponseWith404_to_unknownResource() throws Exception {

    server.addRequestHandler("/some*", new ReadOnlyCoapResource("1"));
    server.addRequestHandler("/3", new ReadOnlyCoapResource("3"));
    server.coapRequestHandler.handleRequest(
            newCoapPacket(LOCAL_1_5683).mid(1).con().post().uriPath("/non-existing-resource").build(), TransportContext.NULL
    );
    assertSendResponse(newCoapPacket(LOCAL_1_5683).mid(1).ack(Code.C404_NOT_FOUND));
}