Code example for TooManyListenersException

0
import java.util.TooManyListenersException; 
 
@TestTargetClass(TooManyListenersException.class) 
public class TooManyListenersExceptionTest extends junit.framework.TestCase {
 
    /** 
     * @tests java.util.TooManyListenersException#TooManyListenersException() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "TooManyListenersException", 
        args = {} 
    ) 
    public void test_Constructor() { 
        // Test for method java.util.TooManyListenersException() 
        try { 
            throw new TooManyListenersException();
        } catch (TooManyListenersException e) {
            assertNull(
                    "Message thrown with exception constructed with no message",