DefaultConnectionMonitor implements ConnectionMonitor { @Override public ConnectionLogger getLogger() { return logger; } private  DefaultConnectionMonitor(final ConnectionMonitorBuilder builder); @Override ConnectionLogger getLogger(); @Override ConnectionMetricsCounter getCounter(); static ConnectionMonitor.Builder builder(final ConnectionMetricsCounter counter, final ConnectionLogger logger); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void getLogger() { final ConnectionMonitor monitor = newMonitor(); assertThat(monitor.getLogger()).isEqualTo(logger); }