### Question:
PropertiesHolder implements IHasProperties { public String getPropertyAsString( String key ) { Object prop = getProperty( key ); if ( prop == null ) { return null; } else { return prop.toString(); } } PropertiesHolder(); @Override Object getProperty( String key ); String getPropertyAsString( String key ); @Override void setProperty( String key, Object value ); @Override Object removeProperty( String key ); @Override Set<String> getPropertyKeys(); @Override Map<String, Object> getProperties(); @Override void setProperties( Map<String, Object> props ); @Override void removeProperties( Set<String> keys ); @Override void clearProperties(); @Override boolean containsKey( String key ); @Override boolean isDirty(); @Override void setDirty( boolean dirty ); @Override String toString();  }### Answer:
@Test public void testGetPropertyAsString() throws Exception { Date now = Calendar.getInstance().getTime(); props.setProperty( "myProperty", now ); assertEquals( now.toString(), props.getPropertyAsString( "myProperty" ) ); }