fail("SSLException must be thrown");
} catch (SSLException ex) {
}
SSLEngineResult res = e.wrap(bbd, bbs);
assertEquals(10, res.bytesConsumed());
assertEquals(20, res.bytesProduced());
try {
e.wrap(new ByteBuffer[] { bbs }, bbd);
fail("SSLException must be thrown");
} catch (SSLException ex) {