#fixed code
                                @Test
    public void givesBonus() throws Exception {
        final Speed speed = new Speed(
            new FkFarm(new FkProject()), "amihaiemil"
        ).bootstrap();
        final String job = "gh:bonus/fast#1";
        speed.add("TST100006", job, Duration.ofDays(1).toMinutes());
        MatcherAssert.assertThat(speed.bonus(job), Matchers.equalTo(Tv.FIVE));
    }
#vulnerable code 
                                @Test
    public void givesBonus() throws Exception {
        final FkProject project = new FkProject();
        final FkFarm farm = new FkFarm(project);
        final Speed speed = new Speed(farm, "amihaiemil").bootstrap();
        final String job = "gh:bonus/fast#1";
        speed.add("TST100006", job, Tv.THOUSAND);
        MatcherAssert.assertThat(speed.bonus(job), Matchers.equalTo(Tv.FIVE));
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK