@Test
void shouldCreateDriverMetricsIfMonitoringEnabled()
{

    // Given
    Config config = mock( Config.class );
    when( config.isMetricsEnabled() ).thenReturn( true );
    when( config.logging() ).thenReturn( Logging.none() );
    // When
    MetricsProvider provider = DriverFactory.createDriverMetrics( config, Clock.SYSTEM );
    // Then
    assertThat( provider.isMetricsEnabled(), is( true ) );
    assertThat( provider instanceof InternalMetricsProvider, is( true ) );
}