InfoProviderFactory { public static ConnectionMonitor.InfoProvider empty() { return new ImmutableInfoProvider(FALLBACK_CORRELATION_ID, Instant.now(), null, Collections.emptyMap(), supplyEmptyPayload(), true); } private  InfoProviderFactory(); static ConnectionMonitor.InfoProvider forExternalMessage(final ExternalMessage externalMessage); static ConnectionMonitor.InfoProvider forSignal(final Signal<?> signal); static ConnectionMonitor.InfoProvider forHeaders(final Map<String, String> headers); static ConnectionMonitor.InfoProvider empty();  }
@Test public void empty() { final Instant before = Instant.now(); final ConnectionMonitor.InfoProvider info = InfoProviderFactory.empty(); final Instant after = Instant.now(); assertThat(info) .hasNoThingId() .hasDefaultCorrelationId() .hasTimestampBetween(before, after); }