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