### Question:
PipelineConfigurationPostProcessor { public void postProcessPipelineConfig(final PipelineConfiguration configuration) { processDockerImage(configuration); processParameters(configuration); } PipelineConfigurationPostProcessor(
            final @Value("${migration.alias.file:}") String aliasFile); void postProcessPipelineConfig(final PipelineConfiguration configuration);  }### Answer:
@Test public void shouldSkipNewRegistry() { final PipelineConfiguration configuration = new PipelineConfiguration(); configuration.setDockerImage(NEW_REGISTRY + DELIMITER + TOOL); processor.postProcessPipelineConfig(configuration); Assert.assertEquals(configuration.getDockerImage(), NEW_REGISTRY + DELIMITER + TOOL); }
@Test public void shouldChangeOldBucket() { final PipelineConfiguration configuration = new PipelineConfiguration(); final HashMap<String, PipeConfValueVO> params = new HashMap<>(); params.put(PARAM_NAME, new PipeConfValueVO(OLD_BUCKET + DELIMITER + FILE_TXT, "input")); configuration.setParameters(params); processor.postProcessPipelineConfig(configuration); Assert.assertEquals(configuration.getParameters().get(PARAM_NAME).getValue(), NEW_BUCKET + DELIMITER + FILE_TXT); }
@Test public void shouldSkipNewBucket() { final PipelineConfiguration configuration = new PipelineConfiguration(); final HashMap<String, PipeConfValueVO> params = new HashMap<>(); params.put(PARAM_NAME, new PipeConfValueVO(NEW_BUCKET + DELIMITER + FILE_TXT, "input")); configuration.setParameters(params); processor.postProcessPipelineConfig(configuration); Assert.assertEquals(configuration.getParameters().get(PARAM_NAME).getValue(), NEW_BUCKET + DELIMITER + FILE_TXT); }
@Test public void shouldChangeOldRegistry() { final PipelineConfiguration configuration = new PipelineConfiguration(); configuration.setDockerImage(OLD_REGISTRY + DELIMITER + TOOL); processor.postProcessPipelineConfig(configuration); Assert.assertEquals(configuration.getDockerImage(), NEW_REGISTRY + DELIMITER + TOOL); }