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