### Question:
InMemoryPipelineRegistry implements PipelineRegistry { @Override public void registerPipeline(final Pipeline pipeline) { checkNotNull("pipeline", pipeline); pipelineByName.put(pipeline.getName(), new PipelineRegistryEntry(pipeline)); } InMemoryPipelineRegistry(); @Override void registerPipeline(final Pipeline pipeline); @Override void registerPipeline(final Pipeline pipeline,
                                 final ProviderType providerType); @Override Pipeline getPipelineByName(final String pipelineId); @Override List<Pipeline> getPipelines(final int page,
                                       final int pageSize,
                                       final String sort,
                                       final boolean sortOrder); @Override List<Pipeline> getPipelines(final String providerType,
                                       final String version,
                                       final int page,
                                       final int pageSize,
                                       final String sort,
                                       final boolean sortOrder); @Override ProviderType getProviderType(final String pipelineId);  }### Answer:
@Test public void testRegisterPipeline() { verifyPipelineIsNotRegistered(pipeline); pipelineRegistry.registerPipeline(pipeline); verifyPipelineIsRegistered(pipeline); }
@Test public void testRegisterPipelineForProviderType() { verifyPipelineIsNotRegistered(pipeline); pipelineRegistry.registerPipeline(pipeline, providerType); verifyPipelineIsRegisteredForProviderType(pipeline, providerType); }