@Before
  public void setup() {
    bos = new ByteArrayOutputStream();
    out = new DataOutputStream(bos);
  }
Test class for json resource plan formatter.
ql/src/test/org/apache/hadoop/hive/ql/metadata/formatting/TestJsonRPFormatter.java