### Question:
ReadPropertyRequest extends CacheableRequest { public void setProperty( Property property ) { checkNotFrozen(); if (property != null) CheckArg.isEquals(property.getName(), "property's name", named(), "property name"); this.property = property; } ReadPropertyRequest( Location on,
                                String workspaceName,
                                Name propertyName ); @Override boolean isReadOnly(); Location on(); String inWorkspace(); Name named(); Property getProperty(); void setProperty( Property property ); void setActualLocationOfNode( Location actual ); Location getActualLocationOfNode(); @Override void cancel(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); @Override RequestType getType();  }### Answer:
@Test public void shouldAllowSettingProperties() { request = new ReadPropertyRequest(validPathLocation, workspace1, validPropertyName); request.setProperty(validProperty1); }
@Test( expected = IllegalArgumentException.class ) public void shouldNotAllowSettingPropertyIfNameDoeNotMatch() { request = new ReadPropertyRequest(validPathLocation, workspace1, validPropertyName); request.setProperty(validProperty2); }