Please provide pointers to help me mock that java InputStream object. This is the line of code that I would wish to Mock:
InputStreamReader inputData = new I
The best solution i found is use
final InputStream inputStream1 = IOUtils.toInputStream("yourdata");
and then wrap the inpustream in bufferedReader best way to write test around input Stream