### Question:
DateUtil { static Date copy(final Date date) { Date tmp=date; if(tmp!=null) { tmp=new Date(tmp.getTime()); } return tmp; } private  DateUtil();   }### Answer:
@Test public void testCopy$differentInstance() { Date now = new Date(); assertThat(DateUtil.copy(now),not(sameInstance(now))); }
@Test public void testCopy$equalInstances() { Date now = new Date(); assertThat(DateUtil.copy(now),equalTo(now)); }