#vulnerable code 
                                @Test
    public void shouldNotCloseSessionFactoryMultipleTimes()
    {
        SessionFactory sessionFactory = sessionFactoryMock();
        InternalDriver driver = newDriver( sessionFactory );

        assertNull( getBlocking( driver.closeAsync() ) );
        assertNull( getBlocking( driver.closeAsync() ) );
        assertNull( getBlocking( driver.closeAsync() ) );

        verify( sessionFactory ).close();
    } 
                            #location 12 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void shouldNotCloseSessionFactoryMultipleTimes()
    {
        SessionFactory sessionFactory = sessionFactoryMock();
        InternalDriver driver = newDriver( sessionFactory );

        assertNull( await( driver.closeAsync() ) );
        assertNull( await( driver.closeAsync() ) );
        assertNull( await( driver.closeAsync() ) );

        verify( sessionFactory ).close();
    }