ApplicationContextBean { public Date getLastModified() { return new Date( this.lastModified.getTime()); }  String getName(); String getDescription(); Date getLastModified(); Collection<InstanceContextBean> getInstances(); Collection<String> getComponents(); Map<String, Set<InstanceContextBean>> getInstancesByType(); @Override String toString();  }
@Test public void checkDateGetter() { ApplicationContextBean bean = new ApplicationContextBean(); Date date = new Date(); bean.lastModified = date; Assert.assertNotSame( date, bean.getLastModified()); Assert.assertEquals( date, bean.getLastModified()); }