print(result = not_allowed.wrap(app_data_plain, buffer));
}
}
// check whether alert message has been sent
assertTrue("Engine did not produce any data",
result.bytesProduced() > 0);
// check whether not_allowed engine stoped handshake operation
assertEquals("Unexpected status of operation: not_allowed "
+ "to session creation peer did not stop its handshake process",
SSLEngineResult.HandshakeStatus.NOT_HANDSHAKING,
not_allowed.getHandshakeStatus());