#vulnerable code 
                                @Test
    public void registerImpediment() throws Exception {
        final Project project = new FkProject();
        final Impediments imp = new Impediments(new PropsFarm(), project)
            .bootstrap();
        final String job = "gh:test/test#1";
        new Wbs(project).bootstrap().add(job);
        new Orders(new PropsFarm(), project).bootstrap()
            .assign(job, "yegor256", "0");
        imp.register(job, "test");
        MatcherAssert.assertThat(
            imp.jobs(),
            Matchers.contains(job)
        );
        MatcherAssert.assertThat(
            imp.exists(job),
            Matchers.is(true)
        );
    } 
                            #location 16 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void registerImpediment() throws Exception {
        final Project project = new FkProject();
        final Impediments imp = new Impediments(new PropsFarm(), project)
            .bootstrap();
        final String job = "gh:test/test#1";
        new Wbs(project).bootstrap().add(job);
        new Orders(new PropsFarm(), project).bootstrap()
            .assign(job, "yegor256", UUID.randomUUID().toString());
        imp.register(job, "test");
        MatcherAssert.assertThat(
            imp.jobs(),
            Matchers.contains(job)
        );
        MatcherAssert.assertThat(
            imp.exists(job),
            Matchers.is(true)
        );
    }