#vulnerable code 
                                @Test
    public void estimatesJobs() throws Exception {
        final Project project = new FkProject();
        final PropsFarm farm = new PropsFarm();
        new Ledger(farm, project).bootstrap().add(
            new Ledger.Transaction(
                new Cash.S("$500"),
                "assets", "cash",
                "income", "sponsor",
                "Funded by Stripe customer"
            )
        );
        final Estimates estimates = new Estimates(farm, project).bootstrap();
        final String first = "gh:yegor256/pdd#4";
        new Wbs(project).bootstrap().add(first);
        new Orders(farm, project).bootstrap().assign(first, "yegor256", "0");
        estimates.update(first, new Cash.S("$45"));
        MatcherAssert.assertThat(
            estimates.get(first),
            Matchers.equalTo(new Cash.S("$45.00"))
        );
        final String second = "gh:yegor256/pdd#1";
        new Wbs(project).bootstrap().add(second);
        new Orders(farm, project).bootstrap().assign(second, "yegor", "0");
        estimates.update(second, new Cash.S("$100"));
        MatcherAssert.assertThat(
            estimates.total(),
            Matchers.equalTo(new Cash.S("$145.00"))
        );
    } 
                            #location 27 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void estimatesJobs() throws Exception {
        final Project project = new FkProject();
        final PropsFarm farm = new PropsFarm();
        new Ledger(farm, project).bootstrap().add(
            new Ledger.Transaction(
                new Cash.S("$500"),
                "assets", "cash",
                "income", "sponsor",
                "Funded by Stripe customer"
            )
        );
        final Estimates estimates = new Estimates(farm, project).bootstrap();
        final String first = "gh:yegor256/pdd#4";
        new Wbs(project).bootstrap().add(first);
        new Orders(farm, project).bootstrap()
            .assign(first, "yegor256", UUID.randomUUID().toString());
        estimates.update(first, new Cash.S("$45"));
        MatcherAssert.assertThat(
            estimates.get(first),
            Matchers.equalTo(new Cash.S("$45.00"))
        );
        final String second = "gh:yegor256/pdd#1";
        new Wbs(project).bootstrap().add(second);
        new Orders(farm, project).bootstrap()
            .assign(second, "yegor", UUID.randomUUID().toString());
        estimates.update(second, new Cash.S("$100"));
        MatcherAssert.assertThat(
            estimates.total(),
            Matchers.equalTo(new Cash.S("$145.00"))
        );
    }