@Test
public void methods_inRequest() throws Exception {

    client.resource("/test").get(Callback.IGNORE);
    assertSent(newCoapPacket(LOCAL_5683).mid(100).uriPath("/test").get());
    cliReceive(newCoapPacket(LOCAL_5683).emptyAck(100));
    client.resource("/test").put(Callback.IGNORE);
    assertSent(newCoapPacket(LOCAL_5683).mid(101).uriPath("/test").put());
    cliReceive(newCoapPacket(LOCAL_5683).emptyAck(101));
    client.resource("/test").delete(Callback.IGNORE);
    assertSent(newCoapPacket(LOCAL_5683).mid(102).uriPath("/test").delete());
    cliReceive(newCoapPacket(LOCAL_5683).emptyAck(102));
    client.resource("/test").post(Callback.IGNORE);
    assertSent(newCoapPacket(LOCAL_5683).mid(103).uriPath("/test").post());
    cliReceive(newCoapPacket(LOCAL_5683).emptyAck(103));
}