#vulnerable code 
                                @Test(expected = UnauthorizedException.class)
    public void reauthenticateFailTwice() {
        when(statusLine.getStatusCode()).thenReturn(401);
        when(authCommand.call()).thenReturn(new AccessImpl());
        this.account = new AccountImpl(authCommand, httpClient, defaultAccess, true);
        new CreateContainerCommand(this.account, httpClient, defaultAccess, account.getContainer("containerName")).call();
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test(expected = UnauthorizedException.class)
    public void reauthenticateFailTwice() {
        when(statusLine.getStatusCode()).thenReturn(401);
        when(authCommand.call()).thenReturn(new AccessImpl());
        this.account = new AccountImpl(authCommand, httpClient, defaultAccess, true);
        new CreateContainerCommandImpl(this.account, httpClient, defaultAccess, account.getContainer("containerName")).call();
    }