public void test_unwrap_06(){
  String host="new host";
  int port=8080;
  ByteBuffer[] bbA={ByteBuffer.allocate(100),ByteBuffer.allocate(10),ByteBuffer.allocate(100)};
  ByteBuffer bb=ByteBuffer.allocate(10);
  SSLEngine sse=getEngine(host,port);
  sse.setUseClientMode(true);
  try {
    SSLEngineResult res=sse.unwrap(bb,bbA,0,bbA.length);
    assertEquals(0,res.bytesConsumed());
    assertEquals(0,res.bytesProduced());
  }
 catch (  Exception ex) {
    fail("Unexpected exception: " + ex);
  }
}

public void test_unwrap_06 ( ) { String host = "new host" ; int port = 8080 ; ByteBuffer [ ] bbA = { ByteBuffer . allocate ( 100 ) , ByteBuffer . allocate ( 10 ) , ByteBuffer . allocate ( 100 ) } ; ByteBuffer bb = ByteBuffer . allocate ( 10 ) ; SSLEngine sse = getEngine ( host , port ) ; sse . setUseClientMode ( true ) ; try { SSLEngineResult res = sse . unwrap ( bb , bbA , 0 , bbA . length ) ; assertEquals ( 0 , res . bytesConsumed ( ) ) ; assertEquals ( 0 , res . bytesProduced ( ) ) ; } catch ( Exception ex ) { fail ( "Unexpected exception: " + ex ) ; } }
javax . net . ssl . sslengine # unwrap ( bytebuffer src , bytebuffer [ ] dsts , int offset , int length )
