### Question:
NetworkConnectionIdGenerator { public String newConnectionId( String connector ) { return connector + '-' + idGenerator.getAndIncrement(); }  String newConnectionId( String connector );  }### Answer:
@Test void shouldGenerateIds() { NetworkConnectionIdGenerator idGenerator = new NetworkConnectionIdGenerator(); assertEquals( "bolt-0", idGenerator.newConnectionId( "bolt" ) ); assertEquals( "bolt-1", idGenerator.newConnectionId( "bolt" ) ); assertEquals( "bolt-2", idGenerator.newConnectionId( "bolt" ) ); assertEquals( "http-3", idGenerator.newConnectionId( "http" ) ); assertEquals( "http-4", idGenerator.newConnectionId( "http" ) ); assertEquals( "https-5", idGenerator.newConnectionId( "https" ) ); assertEquals( "https-6", idGenerator.newConnectionId( "https" ) ); assertEquals( "https-7", idGenerator.newConnectionId( "https" ) ); }