CommandService extends CommandServiceGrpc.CommandServiceImplBase implements Logging { public static Builder newBuilder() { return new Builder(); } private  CommandService(Map<CommandClass, BoundedContext> map); static Builder newBuilder(); @Override void post(Command request, StreamObserver<Ack> responseObserver);  }
@Test @DisplayName("never retrieve removed bounded contexts from builder") void notRetrieveRemovedBc() { CommandService.Builder builder = CommandService .newBuilder() .add(projectsContext) .add(customersContext) .remove(projectsContext); CommandService service = builder.build(); assertNotNull(service); assertTrue(builder.contains(customersContext)); assertFalse(builder.contains(projectsContext)); }