@KnownFailure("Fixed on DonutBurger, Wrong Exception thrown") public void test_unwrap_ByteBuffer_ByteBuffer_03(){
  String host="new host";
  int port=8080;
  ByteBuffer bbsN=null;
  ByteBuffer bbdN=null;
  ByteBuffer bbs=ByteBuffer.allocate(10);
  ByteBuffer bbd=ByteBuffer.allocate(100);
  SSLEngine sse=getEngine(host,port);
  sse.setUseClientMode(true);
  try {
    sse.unwrap(bbsN,bbd);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException iae) {
  }
catch (  NullPointerException npe) {
  }
catch (  Exception e) {
    fail(e + " was thrown instead of IllegalArgumentException");
  }
  try {
    sse.unwrap(bbs,bbdN);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException iae) {
  }
catch (  NullPointerException npe) {
  }
catch (  Exception e) {
    fail(e + " was thrown instead of IllegalArgumentException");
  }
  try {
    sse.unwrap(bbsN,bbdN);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException iae) {
  }
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 bbsN = null ; ByteBuffer bbdN = null ; ByteBuffer bbs = ByteBuffer . allocate ( 10 ) ; ByteBuffer bbd = ByteBuffer . allocate ( 100 ) ; SSLEngine sse = getEngine ( host , port ) ; sse . setUseClientMode ( true ) ; try { sse . unwrap ( bbsN , bbd ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException iae ) { } catch ( NullPointerException npe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalArgumentException" ) ; } try { sse . unwrap ( bbs , bbdN ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException iae ) { } catch ( NullPointerException npe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalArgumentException" ) ; } try { sse . unwrap ( bbsN , bbdN ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException iae ) { } catch ( NullPointerException npe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalArgumentException" ) ; } }
javax . net . ssl . sslengine # unwrap ( bytebuffer src , bytebuffer dst ) illegalargumentexception should be thrown .
