#vulnerable code 
                              @Test
  public void testEmptyArray() throws Exception {
    assertEquals(0, new JBBPOut(new ByteArrayOutputStream()).End().toByteArray().length);
  } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              @Test
  public void testEmptyArray() throws Exception {
    assertEquals(0, JBBPOut.BeginBin().End().toByteArray().length);
  }