DateInstanceBuilder extends AbstractInstanceBuilder { @Override void mergeChanges(Field field, Object target, Object originalValue, Object cloneValue) { EntityPropertiesUtils.setFieldValue(field, target, cloneValue); } DateInstanceBuilder(CloneBuilderImpl builder, UnitOfWorkImpl uow);   }
@Test void testMergeChanges() { final Date orig = new Date(); final Date clone = new Date(System.currentTimeMillis() - 100000); entityM.setDateAttribute(orig); builder.mergeChanges(dateField, entityM, orig, clone); assertEquals(clone, entityM.getDateAttribute()); }