### Question:
ReconnectingChannels { public Stream<Pair<AdvertisedSocketAddress,ProtocolStack>> installedProtocols() { return lazyChannelMap.entrySet().stream() .map( this::installedProtocolOpt ) .flatMap( Streams::ofOptional ); }  int size(); ReconnectingChannel get( AdvertisedSocketAddress to ); ReconnectingChannel putIfAbsent( AdvertisedSocketAddress to, ReconnectingChannel timestampedLazyChannel ); Collection<ReconnectingChannel> values(); void remove( AdvertisedSocketAddress address ); Stream<Pair<AdvertisedSocketAddress,ProtocolStack>> installedProtocols();  }### Answer:
@Test public void shouldReturnEmptyStreamOfInstalledProtocolsIfNoChannels() { Stream<Pair<AdvertisedSocketAddress,ProtocolStack>> installedProtocols = reconnectingChannels.installedProtocols(); assertThat( installedProtocols, empty() ); }