public void testWebSocketInjectionAndInterception() throws Exception {
AnnotatedClient.reset();
AnnotatedEndpoint.reset();
ComponentInterceptor.resetInterceptions();
final ServerContainer serverContainer = (ServerContainer) new InitialContext().lookup(SERVER_CONTAINER_JNDI_NAME);
serverContainer.connectToServer(AnnotatedClient.class, new URI("ws", "", TestSuiteEnvironment.getServerAddress(), 8080, "/websocket/websocket/cruel", "", ""));
Assert.assertEquals("Hello cruel World", AnnotatedClient.getMessage());
Assert.assertTrue("Client endpoint's injection not correct.", AnnotatedClient.injectionOK);
Assert.assertTrue("Server endpoint's injection not correct.", AnnotatedEndpoint.injectionOK);