//Call enumerateListenEndpoints to start a listen operation
//on the endpoint
se.enumerateListenEndpoints(new SETContext());
//Call enumerateListenEndpoints while the endpoint is in use
//and verify that an IOException is thrown
EIUTContext context = new EIUTContext();
try {
se.enumerateListenEndpoints(context);
} catch (IOException e) {
//Verify that IOException was thrown in listen calls to
//ListenEndpoints
Iterator it = context.getResults().iterator();
while (it.hasNext()) {
Boolean b = (Boolean) it.next();
if (!b.booleanValue()){
throw new TestException("Call to Listen"
+ " Endpoint.listen did not throw an IOException"