### Question:
ModelMerger { protected void mergePatternSet_Excludes( PatternSet target, PatternSet source, boolean sourceDominant, Map<Object, Object> context ) { target.setExcludes( merge( target.getExcludes(), source.getExcludes(), sourceDominant, e -> e ) ); }  void merge( Model target, Model source, boolean sourceDominant, Map<?, ?> hints );  }### Answer:
@Test public void mergeSameExcludes() { PatternSet target = new PatternSet(); target.setExcludes( Arrays.asList( "first", "second", "third" ) ); PatternSet source = new PatternSet(); source.setExcludes( Arrays.asList( "first", "second", "third" ) ); modelMerger.mergePatternSet_Excludes( target, source, true, null ); assertThat( target.getExcludes(), contains( "first", "second", "third" ) ); }