* @throws Exception if an error occurs
*/
public void testWhenCharacteristicIsList() throws Exception {
// add a policy/policy value pair to the request
String charateristic = "list";
MutableListValue value = META_DATA_VALUE_FACTORY.createListValue();
List list = value.getContentsAsMutableList();
MutableStringValue strVal = META_DATA_VALUE_FACTORY.createStringValue();
strVal.setValue("str");
list.add(strVal.createImmutable());
ImmutableMetaDataValue listVal = (ImmutableMetaDataValue)
value.createImmutable();
serviceDefMock.expects.getCharacteristic(charateristic).returns(listVal);
// invoke the function
Expression expression = parser.parse(getFunctionQName() +