public void testUsingTimeoutParameter() throws Exception {
// use a timeout value of 2 seconds (timeout is in millis) so we should actually get a response in this test
Endpoint endpoint = context.getEndpoint("mina2:tcp://localhost:{{port}}?textline=true&sync=true&timeout=500");
Producer producer = endpoint.createProducer();
producer.start();
Exchange exchange = producer.createExchange();
exchange.getIn().setBody("Hello World");
try {
producer.process(exchange);
fail("Should have thrown an ExchangeTimedOutException wrapped in a RuntimeCamelException");