#fixed code
                                @Test
    public void rendersHomePageViaHttp() throws Exception {
        final Take app = new TkApp(FkFarm.props());
        new FtRemote(app).exec(
            home -> new JdkRequest(home)
                .fetch()
                .as(RestResponse.class)
                .assertStatus(HttpURLConnection.HTTP_OK)
                .as(XmlResponse.class)
                .assertXPath("/xhtml:html/xhtml:body")
        );
    }
#vulnerable code 
                                @Test
    public void rendersHomePageViaHttp() throws Exception {
        final Take app = new TkApp(new PropsFarm(new FkFarm()));
        new FtRemote(app).exec(
            home -> new JdkRequest(home)
                .fetch()
                .as(RestResponse.class)
                .assertStatus(HttpURLConnection.HTTP_OK)
                .as(XmlResponse.class)
                .assertXPath("/xhtml:html/xhtml:body")
        );
    } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK