output: #fixed code
                                  @Test
      public void testTwoEntriesInRrd() throws IOException, FontFormatException {
          createGaugeRrd(100);
          RrdDb rrd = RrdDb.getBuilder().setPath(jrbFileName).build();
  
          for(int i=0; i<2; i++) {
              long timestamp = startTime + 1 + (i * 60);
              Sample sample = rrd.createSample();
              sample.setAndUpdate(timestamp+":100");
          }
          rrd.close();
          prepareGraph();
  
          expectMajorGridLine("  90");
          expectMinorGridLines(1);
          expectMajorGridLine(" 100");
          expectMinorGridLines(1);
          expectMajorGridLine(" 110");
          expectMinorGridLines(1);
          expectMajorGridLine(" 120");
          expectMinorGridLines(1);
  
          run();
  
      }
input: #vulnerable code 
                                  @Test
      public void testTwoEntriesInRrd() throws IOException, FontFormatException {
          createGaugeRrd(100);
          RrdDb rrd = new RrdDb(jrbFileName);
  
          for(int i=0; i<2; i++) {
              long timestamp = startTime + 1 + (i * 60);
              Sample sample = rrd.createSample();
              sample.setAndUpdate(timestamp+":100");
          }
          rrd.close();
          prepareGraph();
  
          expectMajorGridLine("  90");
          expectMinorGridLines(1);
          expectMajorGridLine(" 100");
          expectMinorGridLines(1);
          expectMajorGridLine(" 110");
          expectMinorGridLines(1);
          expectMajorGridLine(" 120");
          expectMinorGridLines(1);
  
          run();
  
      } 
                              #location 10 
                              #vulnerability type RESOURCE_LEAK