@Test
public void shouldRespondToObservationRequest() {

    CoapPacket resp = newCoapPacket().ack(Code.C205_CONTENT).obs(0).build();
    RequestCallback respCallback = mock(RequestCallback.class);
    server.observe("/test", LOCAL_5683, respCallback, "aa".getBytes(), TransportContext.NULL);
    verifyMakeRequest_andThen().onSent();
    verifyMakeRequest_andThen().call(resp);
    verify(respCallback).onSent();
    verify(respCallback).call(eq(resp));
}