/*
* Class under test for Object create(Class, Object, String, String, String)
*/
public void testCreateClassObjectStringStringString() {
MockTarget target = new MockTarget();
MockButton button = new MockButton();
PropertyChangeListener proxy = EventHandler.create(
PropertyChangeListener.class, target, "text", "source.label",
"propertyChange");
assertTrue(Proxy.isProxyClass(proxy.getClass()));
button.addPropertyChangeListener(proxy);
String newLabel = "New Value: set text.";
button.setLabel(newLabel);
assertEquals(MockButton.defaultName, target.getText());
button.setLabel("New Value: set text2.");
assertEquals(newLabel, target.getText());
}