* Test method for 'java.awt.TextComponent.addTextListener(TextListener)'
*/
public void testAddRemoveTextListener() {
textComp.addTextListener(listener);
assertSame(listener, textComp.textListener);
TextListener newListener = new MyTextListener();
textComp.addTextListener(newListener);
assertTrue("if there are several listeners multicaster is used",
textComp.textListener instanceof AWTEventMulticaster);
AWTEventMulticaster aem = (AWTEventMulticaster) textComp.textListener;
assertSame(listener, aem.a);