### Question:
Bootstrap implements ExternalResourceReleasable { public void setPipelineAsMap(Map<String, ChannelHandler> pipelineMap) { if (pipelineMap == null) { throw new NullPointerException("pipelineMap"); } if (!isOrderedMap(pipelineMap)) { throw new IllegalArgumentException( "pipelineMap is not an ordered map. " + "Please use " + LinkedHashMap.class.getName() + '.'); } ChannelPipeline pipeline = pipeline(); for (Map.Entry<String, ChannelHandler> e: pipelineMap.entrySet()) { pipeline.addLast(e.getKey(), e.getValue()); } setPipeline(pipeline); } protected  Bootstrap(); protected  Bootstrap(ChannelFactory channelFactory); ChannelFactory getFactory(); void setFactory(ChannelFactory factory); ChannelPipeline getPipeline(); void setPipeline(ChannelPipeline pipeline); Map<String, ChannelHandler> getPipelineAsMap(); void setPipelineAsMap(Map<String, ChannelHandler> pipelineMap); ChannelPipelineFactory getPipelineFactory(); void setPipelineFactory(ChannelPipelineFactory pipelineFactory); Map<String, Object> getOptions(); void setOptions(Map<String, Object> options); Object getOption(String key); void setOption(String key, Object value); void releaseExternalResources(); void shutdown();  }### Answer:
@Test(expected = NullPointerException.class) public void shouldNotAllowNullPipelineMap() { newBootstrap().setPipelineAsMap(null); }