@Test
public void update() throws Exception {

    //given
    RegistrationManager reg = registered();
    trnsport.when(newCoapPacket(2).post().uriPath("/stub/0001"))
            .then(newCoapPacket(2).ack(Code.C204_CHANGED).maxAge(101));
    //when
    runScheduledTask();
    //then
    assertTrue(reg.isRegistered());
    verifyScheduledInSec(71L);
}