public void testMerge_notModifyParams() throws Exception {
String partId = "amAnCommandId";
int duration1 = 10010;
int duration2 = 187341;
PartEventType type1 = new PartEventType();
type1.setPartId(partId);
type1.setDuration(duration1);
PartEventType type2 = new PartEventType();
type2.setPartId(partId);
type2.setDuration(duration2);
PartEventType result = merger.merge(type1, type2);
assertNotSame(type1, result);
assertNotSame(type2, result);
assertEquals(partId, type1.getPartId());
assertEquals(duration1, type1.getDuration());
assertEquals(partId, type2.getPartId());