### Question:
Page extends ResourceWrapper { public Calendar getLastModified() { final Calendar calendar = getProperty(JcrConstants.JCR_LASTMODIFIED, Calendar.class); return isNull(calendar) ? getProperty(JcrConstants.JCR_CREATED, Calendar.class) : calendar; } Page(final Resource resource); boolean hasContent(); Resource getContent(); boolean containsProperty(final String name); Object getProperty(final String name); Type getProperty(final String name, final Class<Type> type); @SuppressWarnings("unchecked") Type getProperty(final String name, final Type defaultValue); Calendar getLastModified(); Date getLastModifiedDate();  }### Answer:
@Test public void getLastModified() { assertNull(properPage.getLastModified()); assertNull(properPage.getLastModifiedDate()); final Calendar created = Calendar.getInstance(); jcrContent.putProperty(JcrConstants.JCR_CREATED, created); assertEquals(created, properPage.getLastModified()); assertEquals(created.getTime(), properPage.getLastModifiedDate()); final Calendar lastModified = Calendar.getInstance(); jcrContent.putProperty(JcrConstants.JCR_LASTMODIFIED, lastModified); assertEquals(lastModified, properPage.getLastModified()); assertEquals(lastModified.getTime(), properPage.getLastModifiedDate()); }