@Test
public void update_failedFromServer_immediately_reRegister() throws Exception {

    //given
    RegistrationManager reg = registered();
    trnsport.when(newCoapPacket(2).post().uriPath("/stub/0001"))
            .then(newCoapPacket(2).ack(Code.C404_NOT_FOUND));
    trnsport.when(newCoapPacket(3).post().uriPath("/rd").uriQuery("ep=stub-device-01&lt=100").contFormat(CT_APPLICATION_LINK__FORMAT))
            .then(newCoapPacket(3).ack(Code.C201_CREATED).locPath("/stub/0001").maxAge(102));
    //when
    runScheduledTask();
    //then
    assertTrue(reg.isRegistered());
    verifyScheduledInSec(72L);
}