def METHOD_NAME(self):
    cfg = broker.Configuration(broker.BrokerOptions())
    cfg.openssl_certificate = data_path("cert.1.pem")
    cfg.openssl_key = data_path("key.1.enc.pem")
    cfg.openssl_cafile = data_path("ca.pem")
    cfg.openssl_passphrase = "WRONG PASSWORD"
    with broker.Endpoint(cfg) as ep1, \
         broker.Endpoint(cfg) as ep2:
        port = ep1.listen("127.0.0.1", 0)
        # TODO: This correctly generates an exception in CAF, for which I
        # don't know where to catch it.
        r = ep2.peer("127.0.0.1", port, 0)
        self.assertEqual(r, False)