@Test
void shouldFailWithResolverError() throws Throwable
{

    ConnectionPool pool = mock( ConnectionPool.class );
    Rediscovery rediscovery = mock( Rediscovery.class );
    when( rediscovery.resolve() ).thenThrow( new RuntimeException( "hi there" ) );
    LoadBalancer loadBalancer = newLoadBalancer( pool, rediscovery );
    RuntimeException exception = assertThrows( RuntimeException.class, () -> await( loadBalancer.supportsMultiDb() ) );
    assertThat( exception.getMessage(), equalTo( "hi there" ) );
}