try {
Response response=builder.build().newCall(request).execute();
if (!isPositiveTest()) {
throw new AssertionFailedError("Expected SSLHandshakeException, did not get!");
}
<BUG>Assert.assertEquals(getExpectedResponse(), response.body().string());
}</BUG>
catch (SSLHandshakeException e) {
if (e.getCause() instanceof CertificateNotMemorizedException) {
onNotMemorized((CertificateNotMemorizedException)e.getCause());

try {
Response response=builder.build().newCall(request).execute();
if (!isPositiveTest()) {
throw new AssertionFailedError("Expected SSLHandshakeException, did not get!");
}
Assert.assertEquals(getExpectedResponse(), response.body().string());
if (hasBuilder) {
Assert.assertTrue("Received chain", receivedChain);
}
}
catch (SSLHandshakeException e) {
if (e.getCause() instanceof CertificateNotMemorizedException) {
onNotMemorized((CertificateNotMemorizedException)e.getCause());
