### Question:
ProfileUtil { private static Profile mergeProfiles(List<Profile> profiles) { Profile ret = null; for (Profile profile : profiles) { if (profile != null) { if (ret == null) { ret = new Profile(profile); } else { ret = new Profile(ret, profile); } } } return ret; } private  ProfileUtil(); static Profile findProfile(String profileArg, File resourceDir); static ProcessorConfig blendProfileWithConfiguration(ProcessorConfigurationExtractor configExtractor,
                                                                String profile,
                                                                File resourceDir,
                                                                ProcessorConfig config); static Profile lookup(String name, File directory); static List<Profile> readAllFromClasspath(String name, String ext); static List<Profile> fromYaml(InputStream is); static final String[] PROFILE_FILENAMES; static final String DEFAULT_PROFILE; final static ProcessorConfigurationExtractor GENERATOR_CONFIG; final static ProcessorConfigurationExtractor ENRICHER_CONFIG; final static ProcessorConfigurationExtractor WATCHER_CONFIG; }### Answer:
@Test public void mergeProfiles() throws Exception { Profile profile = ProfileUtil.findProfile("merge-1", getProfileDir()); assertFalse(profile.getEnricherConfig().use("jshift-project-label")); assertTrue(profile.getEnricherConfig().use("jshift-image")); }
@Test public void mergeProfiles() throws Exception { Profile profile = ProfileUtil.findProfile("merge-1", getProfileDir()); assertFalse(profile.getEnricherConfig().use("fmp-project-label")); assertTrue(profile.getEnricherConfig().use("fmp-image")); }