@KnownFailure("Fixed on DonutBurger, Wrong Exception thrown") public void test_unwrap_ByteBuffer$ByteBuffer_03(){
  String host="new host";
  int port=8080;
  ByteBuffer[] bbA={ByteBuffer.allocate(100),ByteBuffer.allocate(10),ByteBuffer.allocate(100)};
  ByteBuffer[] bbN={ByteBuffer.allocate(100),null,ByteBuffer.allocate(100)};
  ByteBuffer[] bbAN=null;
  ByteBuffer bb=ByteBuffer.allocate(10);
  ByteBuffer bN=null;
  SSLEngine sse=getEngine(host,port);
  sse.setUseClientMode(true);
  try {
    sse.unwrap(bN,bbA);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException iobe) {
  }
catch (  NullPointerException npe) {
  }
catch (  Exception e) {
    fail(e + " was thrown instead of IllegalArgumentException");
  }
  try {
    sse.unwrap(bb,bbAN);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException iobe) {
  }
catch (  NullPointerException npe) {
  }
catch (  Exception e) {
    fail(e + " was thrown instead of IllegalArgumentException");
  }
  try {
    sse.unwrap(bb,bbN);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException iobe) {
  }
catch (  NullPointerException npe) {
  }
catch (  Exception e) {
    fail(e + " was thrown instead of IllegalArgumentException");
  }
  try {
    sse.unwrap(bN,bbAN);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException iobe) {
  }
catch (  NullPointerException npe) {
  }
catch (  Exception e) {
    fail(e + " was thrown instead of IllegalArgumentException");
  }
}

@ KnownFailure ( "Fixed on DonutBurger, Wrong Exception thrown" ) public void test_unwrap_ByteBuffer$ByteBuffer_03 ( ) { String host = "new host" ; int port = 8080 ; ByteBuffer [ ] bbA = { ByteBuffer . allocate ( 100 ) , ByteBuffer . allocate ( 10 ) , ByteBuffer . allocate ( 100 ) } ; ByteBuffer [ ] bbN = { ByteBuffer . allocate ( 100 ) , null , ByteBuffer . allocate ( 100 ) } ; ByteBuffer [ ] bbAN = null ; ByteBuffer bb = ByteBuffer . allocate ( 10 ) ; ByteBuffer bN = null ; SSLEngine sse = getEngine ( host , port ) ; sse . setUseClientMode ( true ) ; try { sse . unwrap ( bN , bbA ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException iobe ) { } catch ( NullPointerException npe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalArgumentException" ) ; } try { sse . unwrap ( bb , bbAN ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException iobe ) { } catch ( NullPointerException npe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalArgumentException" ) ; } try { sse . unwrap ( bb , bbN ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException iobe ) { } catch ( NullPointerException npe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalArgumentException" ) ; } try { sse . unwrap ( bN , bbAN ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException iobe ) { } catch ( NullPointerException npe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalArgumentException" ) ; } }
javax . net . ssl . sslengine # unwrap ( bytebuffer src , bytebuffer [ ] dsts ) illegalargumentexception should be thrown .
