#fixed code
                                @Test(expected = IllegalArgumentException.class)
    public void testSelectUsingNameDoesNotExist() {
        try (Database db = db()) {
            db //
                    .select("select score from person where name=:name") //
                    .parameters("nam", "FRED");
        }
    }
#vulnerable code 
                                @Test(expected = IllegalArgumentException.class)
    public void testSelectUsingNameDoesNotExist() {
        db() //
                .select("select score from person where name=:name") //
                .parameters("nam", "FRED");
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK