public void testMerge_notModifyParams() throws Exception {
String fileId = "amAnCommandId";
int duration1 = 10010;
int duration2 = 187341;
FileEventType type1 = new FileEventType();
type1.setFilePath(fileId);
type1.setDuration(duration1);
FileEventType type2 = new FileEventType();
type2.setFilePath(fileId);
type2.setDuration(duration2);
FileEventType result = merger.merge(type1, type2);
assertNotSame(type1, result);
assertNotSame(type2, result);
assertEquals(fileId, type1.getFilePath());
assertEquals(duration1, type1.getDuration());
assertEquals(fileId, type2.getFilePath());