}
public void testSetBeanContext_VetoedByListener()
throws PropertyVetoException {
MockBeanContextChildSupport support = new MockBeanContextChildSupport();
MockBeanContext oldCtx = new MockBeanContext();
support.setBeanContext(oldCtx);
MockPropertyChangeListener l1 = new MockPropertyChangeListener();
MockVetoChangeListener l2 = new MockVetoChangeListener();
support.addPropertyChangeListener("beanContext", l1);
support.addVetoableChangeListener("beanContext", l2);
MockBeanContext ctx = new MockBeanContext();
support.clearLastRecords();
l1.clearLastEvent();
l2.clearLastEvent();
try {