@Test
void shouldHandleMultipleReadersWithActiveConnections()
{

    BoltServerAddress address1 = new BoltServerAddress( "reader", 1 );
    BoltServerAddress address2 = new BoltServerAddress( "reader", 2 );
    BoltServerAddress address3 = new BoltServerAddress( "reader", 3 );
    when( connectionPool.inUseConnections( address1 ) ).thenReturn( 3 );
    when( connectionPool.inUseConnections( address2 ) ).thenReturn( 4 );
    when( connectionPool.inUseConnections( address3 ) ).thenReturn( 1 );
    assertEquals( address3, strategy.selectReader( new BoltServerAddress[]{address1, address2, address3} ) );
}