@Test
public void reRegister_after_disconnection() throws IOException {

    //given
    RegistrationManager reg = tcpRegistered();
    //when, disconnected
    trnsport.when(newCoapPacket().post().uriPath("/stub/0001"))
            .then(newCoapPacket().ack(Code.C204_CHANGED).maxAge(130));
    trnsport.mockOnConnected();
    //then
    assertTrue(reg.isRegistered());
    verifyScheduledInSec(100L);
}