#vulnerable code 
                                @Test
    public void integrationTest() throws Exception {

        File inputTweets = new File(this.getClass().getResource("/tweets-in.xls").toURI());
        File outputTweets = new File(this.getClass().getResource("/tweets-out.xls").toURI());

        Job job = JobBuilder.aNewJob()
                .reader(new MsExcelRecordReader(inputTweets))
                .mapper(new MsExcelRecordMapper(Tweet.class, "id", "user", "message"))
                .marshaller(new MsExcelRecordMarshaller<>(Tweet.class, "id", "user", "message"))
                .writer(new MsExcelRecordWriter(outputTweets, SHEET_NAME))
                .build();

        JobReport report = JobExecutor.execute(job);

        assertThat(report).isNotNull();
        assertThat(report.getMetrics().getTotalCount()).isEqualTo(2);
        assertThat(report.getMetrics().getSuccessCount()).isEqualTo(2);
        assertThat(report.getStatus()).isEqualTo(JobStatus.COMPLETED);

        HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(outputTweets));
        HSSFSheet sheet = workbook.getSheet(SHEET_NAME);
        HSSFRow firstRow = sheet.getRow(1);
        assertThat(firstRow.getCell(0).getNumericCellValue()).isEqualTo(1.0);
        assertThat(firstRow.getCell(1).getStringCellValue()).isEqualTo("foo");
        assertThat(firstRow.getCell(2).getStringCellValue()).isEqualTo("hi");
        HSSFRow secondRow = sheet.getRow(2);
        assertThat(secondRow.getCell(0).getNumericCellValue()).isEqualTo(2.0);
        assertThat(secondRow.getCell(1).getStringCellValue()).isEqualTo("bar");
        assertThat(secondRow.getCell(2).getStringCellValue()).isEqualTo("hello");
    } 
                            #location 11 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void integrationTest() throws Exception {

        File inputTweets = new File(this.getClass().getResource("/tweets-in.xlsx").toURI());
        File outputTweets = new File(this.getClass().getResource("/tweets-out.xlsx").toURI());

        Job job = JobBuilder.aNewJob()
                .reader(new MsExcelRecordReader(inputTweets))
                .mapper(new MsExcelRecordMapper(Tweet.class, "id", "user", "message"))
                .marshaller(new MsExcelRecordMarshaller<>(Tweet.class, "id", "user", "message"))
                .writer(new MsExcelRecordWriter(outputTweets, SHEET_NAME))
                .build();

        JobReport report = JobExecutor.execute(job);

        assertThat(report).isNotNull();
        assertThat(report.getMetrics().getTotalCount()).isEqualTo(2);
        assertThat(report.getMetrics().getSuccessCount()).isEqualTo(2);
        assertThat(report.getStatus()).isEqualTo(JobStatus.COMPLETED);

        XSSFWorkbook workbook = new XSSFWorkbook(new FileInputStream(outputTweets));
        XSSFSheet sheet = workbook.getSheet(SHEET_NAME);
        XSSFRow row = sheet.getRow(1);
        assertThat(row.getCell(0).getNumericCellValue()).isEqualTo(1.0);
        assertThat(row.getCell(1).getStringCellValue()).isEqualTo("foo");
        assertThat(row.getCell(2).getStringCellValue()).isEqualTo("hi");
        row = sheet.getRow(2);
        assertThat(row.getCell(0).getNumericCellValue()).isEqualTo(2.0);
        assertThat(row.getCell(1).getStringCellValue()).isEqualTo("bar");
        assertThat(row.getCell(2).getStringCellValue()).isEqualTo("hello");
    }