question: public void testAvailable ( ) throws Exception { byte [ ] data = new byte [ ] { - 127 , - 100 , - 50 , - 10 , - 1 , 0 , 1 , 10 , 50 , 127 } ; TestInputStream tis = new TestInputStream ( data ) ; CipherInputStream cis = new CipherInputStream ( tis , new NullCipher ( ) ) ; assertEquals ( "The returned by available() method value " + "should be 0." , cis . available ( ) , 0 ) ; }
target:  available() method testing. Tests that the method always return 0.