#vulnerable code 
                                @Before
    public void setUp() throws Exception {
        new File("target/test-classes/META-INF/services/").mkdirs();
        FileWriter out = new FileWriter(PLUGIN_LIFECYCLE);
        out.write(TestOgmPluginLifecycle.class.getName());
        out.close();
    } 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Before
    public void setUp() throws Exception {
        TestOgmPluginLifecycle.shouldInitialize = true;
    }