#fixed code
                                @Test
    public void shouldKnowSessionIsClosed() throws Throwable
    {
        // Given
        try( Driver driver = GraphDatabase.driver( neo4j.address() ) )
        {
            Session session = driver.session();

            // When
            session.close();

            // Then
            assertFalse( session.isOpen() );
        }
    }
#vulnerable code 
                                @Test
    public void shouldKnowSessionIsClosed() throws Throwable
    {
        // Given
        Driver driver = GraphDatabase.driver( neo4j.address() );
        Session session = driver.session();

        // When
        session.close();

        // Then
        assertFalse( session.isOpen() );
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK