#vulnerable code 
                                @Test
    public void checkAuthenticationToken() {
        when(statusLine.getStatusCode()).thenReturn(201);
        CreateContainerCommand command =
            new CreateContainerCommand(this.account, httpClient, defaultAccess, account.getContainer("containerName"));
        Header[] xAuth = command.request.getHeaders(Token.X_AUTH_TOKEN);
        assertEquals(1, xAuth.length);
        assertEquals("cafebabe", xAuth[0].getValue());
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void checkAuthenticationToken() {
        when(statusLine.getStatusCode()).thenReturn(201);
        CreateContainerCommandImpl command =
            new CreateContainerCommandImpl(this.account, httpClient, defaultAccess, account.getContainer("containerName"));
        Header[] xAuth = command.request.getHeaders(Token.X_AUTH_TOKEN);
        assertEquals(1, xAuth.length);
        assertEquals("cafebabe", xAuth[0].getValue());
    }