### Question:
Page extends ResourceWrapper { public Object getProperty(final String name) { if (nonNull(contentProperties) && contentProperties.containsKey(name)) { return contentProperties.get(name); } return properties.get(name); } 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 getProperty_defaultValue() { assertEquals(DEFAULT_VALUE, properPage.getProperty(NAME, DEFAULT_VALUE)); jcrContent.putProperty(NAME, VALUE); assertEquals(VALUE, properPage.getProperty(NAME, DEFAULT_VALUE)); jcrContent.putProperty(NAME, null); assertNull(properPage.getProperty(NAME, DEFAULT_VALUE)); }
@Test public void getProperty() { assertNull(missingContent.getProperty(NAME)); parent.putProperty(NAME, VALUE); assertEquals(VALUE, missingContent.getProperty(NAME)); }
@Test public void getProperty_type() { assertNull(properPage.getProperty(NAME, String.class)); jcrContent.putProperty(NAME, VALUE); assertEquals(VALUE, properPage.getProperty(NAME, String.class)); }