#vulnerable code 
                                @Test(expected = IllegalArgumentException.class)
    public void testSelectWithFetchSizeNegative() {
        db().select("select score from person order by name") //
                .fetchSize(-1);
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test(expected = IllegalArgumentException.class)
    public void testSelectWithFetchSizeNegative() {
        try (Database db = db()) {
            db.select("select score from person order by name") //
                    .fetchSize(-1);
        }
    }