#vulnerable code 
                                @Test
    public void acceptRequestAndRedirectOnPost() throws Exception {
        final Farm farm = new PropsFarm(new FkFarm());
        MatcherAssert.assertThat(
            new TkApp(farm).act(
                new RqWithBody(
                    new RqWithUser.WithInit(
                        farm,
                        new RqFake("POST", "/join-post")
                    ),
                    "personality=INTJ-A&stackoverflow=187141"
                )
            ),
            Matchers.allOf(
                new HmRsStatus(HttpURLConnection.HTTP_SEE_OTHER),
                new HmRsHeader("Location", "/join")
            )
        );
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void acceptRequestAndRedirectOnPost() throws Exception {
        final Farm farm = FkFarm.props();
        MatcherAssert.assertThat(
            new TkApp(farm).act(
                new RqWithBody(
                    new RqWithUser.WithInit(
                        farm,
                        new RqFake("POST", "/join-post")
                    ),
                    "personality=INTJ-A&stackoverflow=187141"
                )
            ),
            Matchers.allOf(
                new HmRsStatus(HttpURLConnection.HTTP_SEE_OTHER),
                new HmRsHeader("Location", "/join")
            )
        );
    }