### Question:
InMemoryPipelineExecutorRegistry implements PipelineExecutorRegistry { @Override public void register(final PipelineExecutorTrace trace) { checkNotNull("trace", trace); recordsMap.put(trace.getTaskId(), trace); } InMemoryPipelineExecutorRegistry(); @Override void register(final PipelineExecutorTrace trace); void deregister(final String pipelineExecutionId); @Override PipelineExecutorTrace getExecutorTrace(final String pipelineExecutionId); @Override Collection<PipelineExecutorTrace> getExecutorTraces(); @Override PipelineExecutorTrace getExecutorTrace(final RuntimeId runtimeId);  }### Answer:
@Test public void testRegister() { pipelineExecutorRegistry.register(trace); PipelineExecutorTrace result = pipelineExecutorRegistry.getExecutorTrace(PIPELINE_EXECUTION_ID); assertEquals(trace, result); }