#vulnerable code 
                                @Test
    public void testEntriesNeg80To90InRrd() throws IOException, FontFormatException {
        createGaugeRrd(180);
        RrdDb rrd = new RrdDb(jrbFileName);

        for(int i=0; i<170; i++) {
            long timestamp = startTime + 1 + (i * 60);
            Sample sample = rrd.createSample();
            sample.setAndUpdate(timestamp + ":" + (i -80));
        }
        rrd.close();
        prepareGraph();
        /**
         * Original behaviour; a single major X-axis label (0) only.
                expectMinorGridLines(4);
                expectMajorGridLine("   0");
                expectMinorGridLines(4);
         */
        //New behaviour post JRB-12 fix:
        expectMajorGridLine(" -50");
        expectMajorGridLine("   0");
        expectMajorGridLine("  50");

        run();

    } 
                            #location 10 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void testEntriesNeg80To90InRrd() throws IOException, FontFormatException {
        createGaugeRrd(180);
        RrdDb rrd = RrdDb.getBuilder().setPath(jrbFileName).build();

        for(int i=0; i<170; i++) {
            long timestamp = startTime + 1 + (i * 60);
            Sample sample = rrd.createSample();
            sample.setAndUpdate(timestamp + ":" + (i -80));
        }
        rrd.close();
        prepareGraph();
        /**
         * Original behaviour; a single major X-axis label (0) only.
                expectMinorGridLines(4);
                expectMajorGridLine("   0");
                expectMinorGridLines(4);
         */
        //New behaviour post JRB-12 fix:
        expectMajorGridLine(" -50");
        expectMajorGridLine("   0");
        expectMajorGridLine("  50");

        run();

    }