@AndroidOnly("The RI doesn't throw the IllegalStateException.") public void test_unwrap_ByteBuffer$ByteBuffer_04(){
  String host="new host";
  int port=8080;
  ByteBuffer bbs=ByteBuffer.allocate(10);
  ByteBuffer[] bbd={ByteBuffer.allocate(100),ByteBuffer.allocate(10),ByteBuffer.allocate(100)};
  SSLEngine sse=getEngine(host,port);
  try {
    sse.unwrap(bbs,bbd);
    fail("IllegalStateException wasn't thrown");
  }
 catch (  IllegalStateException iobe) {
  }
catch (  Exception e) {
    fail(e + " was thrown instead of IllegalStateException");
  }
}

@ AndroidOnly ( "The RI doesn't throw the IllegalStateException." ) public void test_unwrap_ByteBuffer$ByteBuffer_04 ( ) { String host = "new host" ; int port = 8080 ; ByteBuffer bbs = ByteBuffer . allocate ( 10 ) ; ByteBuffer [ ] bbd = { ByteBuffer . allocate ( 100 ) , ByteBuffer . allocate ( 10 ) , ByteBuffer . allocate ( 100 ) } ; SSLEngine sse = getEngine ( host , port ) ; try { sse . unwrap ( bbs , bbd ) ; fail ( "IllegalStateException wasn't thrown" ) ; } catch ( IllegalStateException iobe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalStateException" ) ; } }
javax . net . ssl . sslengine # unwrap ( bytebuffer src , bytebuffer [ ] dsts ) illegalstateexception should be thrown .
