question: @ AndroidOnly ( "The RI doesn't throw the IllegalStateException." ) public void test_unwrap_05 ( ) { String host = "new host" ; int port = 8080 ; ByteBuffer [ ] bbA = { ByteBuffer . allocate ( 100 ) , ByteBuffer . allocate ( 10 ) , ByteBuffer . allocate ( 100 ) } ; ByteBuffer bb = ByteBuffer . allocate ( 10 ) ; SSLEngine sse = getEngine ( host , port ) ; try { sse . unwrap ( bb , bbA , 0 , bbA . length ) ; fail ( "IllegalStateException wasn't thrown" ) ; } catch ( IllegalStateException iobe ) { } catch ( Exception e ) { fail ( e + " was thrown instead of IllegalStateException" ) ; } }
target:  javax.net.ssl.SSLEngine#unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) Exception case: IllegalStateException should be thrown.