Program: 7201
Project: 7201
Buggy source:
@Test public void testStream() throws Exception {
  String streamId=PREFIX + "String_Node_Str";
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str",streamId);
  testCommandOutputNotContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputNotContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  File file=new File(TMP_FOLDER.newFolder(),"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str"+ file.getAbsolutePath(),"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str"+ file.getParentFile().getAbsolutePath(),"String_Node_Str");
  BufferedWriter writer=Files.newWriter(file,Charsets.UTF_8);
  try {
    for (int i=0; i < 10; i++) {
      writer.write("String_Node_Str" + i);
      writer.newLine();
    }
  }
  finally {
    writer.close();
  }
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str"+ file.getAbsolutePath(),"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
}

Fixed version (ground truth):
@Test public void testStream() throws Exception {
  String streamId=PREFIX + "String_Node_Str";
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str",streamId);
  testCommandOutputNotContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputNotContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  File file=new File(TMP_FOLDER.newFolder(),"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str"+ file.getAbsolutePath(),"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str"+ file.getParentFile().getAbsolutePath(),"String_Node_Str");
  BufferedWriter writer=Files.newWriter(file,Charsets.UTF_8);
  try {
    for (int i=0; i < 10; i++) {
      writer.write(String.format("String_Node_Str",i,i));
      writer.newLine();
    }
  }
  finally {
    writer.close();
  }
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str"+ file.getAbsolutePath(),"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId,String.format("String_Node_Str",streamId));
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str",String.format("String_Node_Str",streamId));
  testCommandOutputContains(cli,"String_Node_Str",String.format("String_Node_Str",streamId));
  testCommandOutputContains(cli,"String_Node_Str" + streamId,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str" + streamId + "String_Node_Str","String_Node_Str");
}