def METHOD_NAME(self):
    # Test that the network can reject a node that is not authorized
    # Create a network
    self.network = MockNetwork(
        num_of_delegates=0,
        num_of_masternodes=1,
        ctx=self.ctx,
        metering=False,
        delay={'base': 0.1, 'self': 0.1}
    )
    self.network2 = MockNetwork(
        num_of_delegates=1,
        num_of_masternodes=0,
        ctx=self.ctx,
        metering=False,
        delay={'base': 0.1, 'self': 0.1},
        index=1
    )
    # start networks
    self.await_async_process(self.network.start)
    self.await_async_process(self.network2.start)
    # get a masternode
    masternode_1 = self.network.masternodes[0]
    # get a unauthorized delegate
    unauthorized_delegate = self.network2.delegates[0]
    masternode_1_id = masternode_1.wallet.verifying_key
    unauthorized_delegate_key = lamden.new_network.z85_key(unauthorized_delegate.wallet.verifying_key)
    self.await_async_process(
        unauthorized_delegate.obj.network.connect,
        {
            'ip': masternode_1.obj.network.socket_base,
            'key': masternode_1_id
        }
    )
    # Wait for the unauthorized_delegate_key to have a chance to connect
    self.async_sleep(1)
    # Test that the master node denied the unauthorized delegate
    self.assertTrue(unauthorized_delegate_key in masternode_1.obj.network.router.cred_provider.denied)