@Test
public void testSetServletInitalparameters() throws Exception {
String uri = "websocket://localhost:" + port + "/bar?bufferSize=65000&maxIdleTime=3000";
WebsocketEndpoint websocketEndpoint = (WebsocketEndpoint)context.getEndpoint(uri);
WebsocketComponent component = websocketEndpoint.getComponent();
Consumer consumer = websocketEndpoint.createConsumer(processor);
component.connect((WebsocketProducerConsumer) consumer);
assertNotNull(consumer);
assertEquals(WebsocketConsumer.class, consumer.getClass());
// just check the servlet initial parameters
ConnectorRef conector = component.getConnectors().values().iterator().next();
ServletContextHandler context = (ServletContextHandler)conector.server.getHandler();