def METHOD_NAME(self):
    self.nodes[1].start()
    self.simulator.go(config.LEADER_STARTUP_DELAY)
    self.assertEqual(self.nodes[1].get_state(), 'leader')
    for i in range(2, 33):
        self.nodes[i].start()
        self.simulator.go(config.ROUTER_STARTUP_DELAY)
        self.assertEqual(self.nodes[i].get_state(), 'router')
    self.nodes[2].reset()
    self.nodes[2].set_router_selection_jitter(3)
    self.nodes[2].set_router_upgrade_threshold(32)
    self.nodes[2].set_router_downgrade_threshold(32)
    self.nodes[2].start()
    self.assertEqual(self.nodes[2].get_router_downgrade_threshold(), 32)
    # Verify that the node restored as Router.
    self.simulator.go(1)
    self.assertEqual(self.nodes[2].get_state(), 'router')
    # Verify that the node does not downgrade after Router Selection Jitter.
    self.simulator.go(5)
    self.assertEqual(self.nodes[2].get_state(), 'router')