### Question:
PipelineConfigurationManager { public PipelineConfiguration getPipelineConfiguration(final PipelineStart runVO) { return getPipelineConfiguration(runVO, null); }  PipelineConfiguration getPipelineConfiguration(final PipelineStart runVO); PipelineConfiguration getPipelineConfiguration(final PipelineStart runVO, final Tool tool); PipelineConfiguration mergeParameters(PipelineStart runVO, PipelineConfiguration defaultConfig); boolean initClusterConfiguration(PipelineConfiguration configuration, boolean isNFS); static boolean isClusterConfiguration(final PipelineConfiguration configuration); void updateMasterConfiguration(PipelineConfiguration configuration, boolean isNFS); void updateWorkerConfiguration(String parentId, PipelineStart runVO,
            PipelineConfiguration configuration, boolean isNFS, boolean clearParams); boolean hasNFSParameter(PipelineConfiguration entry); PipelineConfiguration getConfigurationFromRun(PipelineRun run); PipelineConfiguration getConfigurationForTool(final Tool tool, final PipelineConfiguration configuration); static final String MASTER_CLUSTER_ROLE; static final String NFS_CLUSTER_ROLE; static final String ERASE_RUN_ENDPOINTS; static final String ERASE_WORKER_ENDPOINTS; static final String GE_AUTOSCALING; static final String WORKER_CLUSTER_ROLE; static final String WORKER_CMD_TEMPLATE; }### Answer:
@Test @Transactional(propagation = Propagation.REQUIRES_NEW) @WithMockUser(username = TEST_OWNER1) public void testGetUnregisteredPipelineConfiguration() { PipelineStart vo = getPipelineStartVO(); PipelineConfiguration config = pipelineConfigurationManager.getPipelineConfiguration(vo); Assert.assertFalse(config.getBuckets().isEmpty()); Assert.assertFalse(config.getNfsMountOptions().isEmpty()); String[] buckets = config.getBuckets().split(";"); Assert.assertEquals(2, buckets.length); for (String bucket : buckets) { Assert.assertTrue(dataStorages.stream().anyMatch(ds -> bucket.equals(ds.getPathMask()))); } String[] nfsOptions = config.getNfsMountOptions().split(";"); Assert.assertEquals(1, nfsOptions.length); for (String option : nfsOptions) { if (StringUtils.isNotBlank(option)) { Assert.assertTrue(dataStorages.stream() .filter(ds -> ds instanceof NFSDataStorage) .anyMatch(ds -> { NFSDataStorage nfsDs = (NFSDataStorage) ds; return nfsDs.getMountOptions().equals(option) || option.equals(nfsDs.getMountOptions() + ",ro"); })); } } String[] mountPoints = config.getMountPoints().split(";"); for (String mountPoint : mountPoints) { if (StringUtils.isNotBlank(mountPoint)) { Assert.assertTrue(dataStorages.stream().anyMatch(ds -> mountPoint.equals(ds.getMountPoint()))); } } }