RemoteService remoteMBean = (RemoteService)MBeanServerInvocationHandler.newProxyInstance(mbsc, name, RemoteService.class, false);
// Close everything to get IOException
cntor.close();
cntorServer.stop();
try
{
remoteMBean.throwCheckedException();
fail("Must not be able to connect");