Set set = clientpool.getContents();
Object[] serverThreads = set.toArray();
for (int i = 0; i < serverThreads.length; i++)
{
ServerThread st = (ServerThread) serverThreads[i];
st.shutdown();
}
client.invoke(SEND_CALLBACK);
assertEquals(2, callbackHandler.received);
set = clientpool.getContents();
serverThreads = set.toArray();