I have a jUnit test for a simple Cipher encryption/decryption.The question doesn't make sense. You're asking us about the interface to the unknown class you are unit testing. We can't answer that. You have to test the API that you are unit-testing. Only you know what that is.
I want to write a test to encrypt large data.
Do I have to change the encryption variable type from String to a Stream class?