DefaultConnectionMonitorRegistry implements ConnectionMonitorRegistry<ConnectionMonitor> { public static DefaultConnectionMonitorRegistry fromConfig(final MonitoringConfig config) { checkNotNull(config); final ConnectionLoggerRegistry loggerRegistry = ConnectionLoggerRegistry.fromConfig(config.logger()); final ConnectivityCounterRegistry counterRegistry = ConnectivityCounterRegistry.fromConfig(config.counter()); return new DefaultConnectionMonitorRegistry(loggerRegistry, counterRegistry); } private  DefaultConnectionMonitorRegistry(final ConnectionLoggerRegistry connectionLoggerRegistry,
            final ConnectivityCounterRegistry connectionCounterRegistry); static DefaultConnectionMonitorRegistry fromConfig(final MonitoringConfig config); @Override void initForConnection(final Connection connection); @Override void resetForConnection(final Connection connection); @Override ConnectionMonitor forOutboundDispatched(final ConnectionId connectionId, final String target); @Override ConnectionMonitor forOutboundAcknowledged(final ConnectionId connectionId, final String target); @Override ConnectionMonitor forOutboundFiltered(final ConnectionId connectionId, final String target); @Override ConnectionMonitor forOutboundPublished(final ConnectionId connectionId, final String target); @Override ConnectionMonitor forInboundConsumed(final ConnectionId connectionId, final String source); @Override ConnectionMonitor forInboundAcknowledged(final ConnectionId connectionId, final String source); @Override ConnectionMonitor forInboundMapped(final ConnectionId connectionId, final String source); @Override ConnectionMonitor forInboundEnforced(final ConnectionId connectionId, final String source); @Override ConnectionMonitor forInboundDropped(final ConnectionId connectionId, final String source); @Override ConnectionMonitor forResponseDispatched(final ConnectionId connectionId); @Override ConnectionMonitor forResponseDropped(final ConnectionId connectionId); @Override ConnectionMonitor forResponseMapped(final ConnectionId connectionId); @Override ConnectionMonitor forResponsePublished(final ConnectionId connectionId); ConnectionMonitor getMonitor(final ConnectionId connectionId, final MetricType metricType,
            final MetricDirection metricDirection, final LogType logType, final LogCategory logCategory,
            final String address); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void fromConfig() { assertThat(DefaultConnectionMonitorRegistry.fromConfig(TestConstants.MONITORING_CONFIG)) .isNotNull(); }