question: @ AndroidOnly ( "The RI doesn't throw the IllegalStateException." ) public void test_wrap_05 ( ) throws SSLException { String host = "new host" ; int port = 8080 ; ByteBuffer bb = ByteBuffer . allocate ( 10 ) ; ByteBuffer [ ] bbA = { ByteBuffer . allocate ( 5 ) , ByteBuffer . allocate ( 10 ) , ByteBuffer . allocate ( 5 ) } ; SSLEngine sse = getEngine ( host , port ) ; try { sse . wrap ( bbA , 0 , bbA . length , bb ) ; fail ( "IllegalStateException wasn't thrown" ) ; } catch ( IllegalStateException iobe ) { } }
target:  javax.net.ssl.SSLEngine#wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) Exception case: IllegalStateException should be thrown.