'Test a successful connection with client certificate validation on
server side.'

def test_successfulCertificateVerification(self):

    onData = defer.Deferred()
    self.loopback(sslverify.OpenSSLCertificateOptions(privateKey=self.sKey, certificate=self.sCert, verify=False, requireCertificate=False), sslverify.OpenSSLCertificateOptions(verify=True, requireCertificate=True, caCerts=[self.sCert]), onData=onData)
    return onData.addCallback((lambda result: self.assertEqual(result, WritingProtocol.byte)))
