}
public void testMethod2(TestHarness harness)
{
harness.checkPoint("(String, VetoableChangeListener)");
VetoableChangeSupport vcs = new VetoableChangeSupport(this);
harness.check(vcs.getVetoableChangeListeners().length, 0);
vcs.addVetoableChangeListener("A", this);
vcs.addVetoableChangeListener("B", this);
harness.check(vcs.getVetoableChangeListeners().length, 2);
harness.check(vcs.getVetoableChangeListeners("A").length, 1);
harness.check(vcs.getVetoableChangeListeners("B").length, 1);
vcs.addVetoableChangeListener("B", null);
harness.check(vcs.getVetoableChangeListeners().length, 2);
harness.check(vcs.getVetoableChangeListeners("B").length, 1);
// try null property name
vcs.addVetoableChangeListener(null, this);
harness.check(vcs.getVetoableChangeListeners().length, 2);
harness.check(vcs.getVetoableChangeListeners("A").length, 1);
harness.check(vcs.getVetoableChangeListeners("B").length, 1);
}