_props[2] = new Property(DiscardPolicy.value, _discardPolicyAny);
////////////////////////////////////////
objectUnderTest_.validate_qos(_props, new NamedPropertyRangeSeqHolder());
////////////////////////////////////////
_props[2] = new Property("OtherPolicy", _discardPolicyAny);
try
{
objectUnderTest_.validate_qos(_props, new NamedPropertyRangeSeqHolder());
fail();
} catch (UnsupportedQoS e)
{
// expected
}
////////////////////////////////////////
Any wrongType = getORB().create_any();
wrongType.insert_long(10);
_props[2] = new Property(DiscardPolicy.value, wrongType);
try
{
objectUnderTest_.validate_qos(_props, new NamedPropertyRangeSeqHolder());
fail();
} catch (UnsupportedQoS ex)
{
// expected. verify contents.
for (int x = 0; x < ex.qos_err.length; ++x)