public void testMerge_notModifyParams() throws Exception {
String commandId = "amAnCommandId";
int count1 = 10010;
int count2 = 187341;
CommandEventType type1 = new CommandEventType();
type1.setCommandId(commandId);
type1.setCount(count1);
CommandEventType type2 = new CommandEventType();
type2.setCommandId(commandId);
type2.setCount(count2);
CommandEventType result = merger.merge(type1, type2);
assertNotSame(type1, result);
assertNotSame(type2, result);
assertEquals(commandId, type1.getCommandId());
assertEquals(count1, type1.getCount());
assertEquals(commandId, type2.getCommandId());