### Question:
AnnotationType implements Serializable { public Object getModelPropertyValueByName( String name ) throws Exception { List<Field> fields = findAllFields( new ArrayList<Field>(), this.getClass() ); for ( Field f : fields ) { if ( f.isAnnotationPresent( ModelProperty.class ) ) { ModelProperty mp = f.getAnnotation( ModelProperty.class ); if ( StringUtils.equals( mp.name(), name ) ) { return PropertyUtils.getProperty( this, f.getName() ); } } } return null; }  List<String> getModelPropertyIds(); void setModelPropertyValueById( String id, Object value ); Object getModelPropertyValueById( String id ); Object getModelPropertyValueByName( String name ); Class getModelPropertyNameClassType( String name ); List<String> getModelPropertyNames(); List<ModelProperty> getModelProperties(); void setModelPropertyByName( String modelPropertyName, Object value ); Map<String, Serializable> describe(); void populate( final Map<String, Serializable> propertiesMap ); void iterateProperties( KeyValueClosure closure ); @Override boolean equals( Object obj ); @Override int hashCode(); abstract boolean apply(
      final ModelerWorkspace workspace, final IMetaStore metaStore ); abstract boolean apply( final Document schema ); abstract void validate(); abstract ModelAnnotation.Type getType(); abstract String getSummary(); abstract String getName(); abstract String getField(); boolean equalsLogically( AnnotationType obj );  }### Answer:
@Test public void testGetModelPropertyValueByName() throws Exception { CreateAttribute createAttribute = new CreateAttribute(); createAttribute.setModelPropertyByName( "Time Forma...", "xxxxx" ); assertNull( createAttribute.getModelPropertyValueByName( "Time Forma..." ) ); createAttribute.setModelPropertyByName( "Time Source Format", "xxxxx" ); assertTrue( createAttribute.getTimeFormat().equalsIgnoreCase( "xxxxx" ) ); createAttribute.setModelPropertyByName( "Time Level Type", ModelAnnotation.TimeType.TimeHalfYears ); assertTrue( createAttribute.getTimeType().equals( ModelAnnotation.TimeType.TimeHalfYears ) ); createAttribute.setModelPropertyByName( "Geo Type", ModelAnnotation.GeoType.Continent.toString() ); }