question: @ AndroidOnly ( "The RI doesn't throw the IllegalStateException." ) public void test_wrap_ByteBuffer$ByteBuffer_04 ( ) { 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 , bb ) ; fail ( "IllegalStateException wasn't thrown" ) ; } catch ( IllegalStateException iobe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalStateException" ) ; } }
target:  javax.net.ssl.SSLEngine#wrap(ByteBuffer[] srcs, ByteBuffer dst) IllegalStateException should be thrown.