@Test
void logsNothingDuringFinalizationIfClosed() throws Exception
{

    Logging logging = mock( Logging.class );
    Logger log = mock( Logger.class );
    when( logging.getLog( anyString() ) ).thenReturn( log );
    LeakLoggingNetworkSession session = newSession( logging, false );
    finalize( session );
    verify( log, never() ).error( anyString(), any( Throwable.class ) );
}