@Override
public void onOpen(Session session, EndpointConfig config) {
}
}, cec, getURI(OnCloseErrorTestEndpoint.class));
session.close();
<BUG>testViaServiceEndpoint(client, ServiceEndpoint.class, POSITIVE, "OnCloseErrorTestEndpoint");
} catch (Exception e) {</BUG>
e.printStackTrace();
throw new RuntimeException(e.getMessage(), e);
} finally {

@Override
public void onOpen(Session session, EndpointConfig config) {
session.addMessageHandler(new MessageHandler.Whole<String>() {
@Override
public void onMessage(String message) {
}
});
}
}, cec, getURI(OnOpenErrorTestEndpoint.class));
testViaServiceEndpoint(client, ServiceEndpoint.class, POSITIVE, "OnOpenErrorTestEndpoint");
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException(e.getMessage(), e);
} finally {
