ConsoleReporterProvider implements Provider<ConsoleReporter> { @Override public ConsoleReporter get() { return ConsoleReporter.forRegistry(metricRegistry) .formattedFor(configuration.getLocale()) .formattedFor(configuration.getTimeZone()) .outputTo(configuration.getOutputStream()) .convertDurationsTo(configuration.getUnitDurations()) .convertRatesTo(configuration.getUnitRates()) .filter(new RegexMetricFilter(configuration.getIncludeMetrics())) .build(); } @Inject  ConsoleReporterProvider(MetricsConsoleReporterConfiguration configuration, MetricRegistry metricRegistry); @Override ConsoleReporter get();  }
@Test public void get() throws Exception { final ConsoleReporterProvider provider = new ConsoleReporterProvider(new MetricsConsoleReporterConfiguration(), new MetricRegistry()); final ConsoleReporter reporter = provider.get(); assertNotNull(reporter); }