#fixed code
                                @Test
    public void shouldEstablishTLSConnection() throws Throwable
    {
        ConfigTest.deleteDefaultKnownCertFileIfExists();
        Config config = Config.build().withTlsEnabled( true ).toConfig();

        Driver driver = GraphDatabase.driver(
                URI.create( Neo4jRunner.DEFAULT_URL ),
                config );

        ResultCursor result = driver.session().run( "RETURN 1" );
        assertTrue( result.next() );
        assertEquals( 1, result.value( 0 ).asInt() );
        assertFalse( result.next() );

        driver.close();
    }
#vulnerable code 
                                @Test
    public void shouldEstablishTLSConnection() throws Throwable
    {
        ConfigTest.deleteDefaultKnownCertFileIfExists();
        Config config = Config.build().withTlsEnabled( true ).toConfig();

        Driver driver = GraphDatabase.driver(
                URI.create( Neo4jRunner.DEFAULT_URL ),
                config );

        Result result = driver.session().run( "RETURN 1" );
        assertTrue( result.next() );
        assertEquals( 1, result.value( 0 ).asInt() );
        assertFalse( result.next() );

        driver.close();
    } 
                            #location 17 
                            #vulnerability type RESOURCE_LEAK