    @Test
    public void testInvalidEndpointUri() throws Exception {

        JmsEndpointComponent component = new JmsEndpointComponent();
        try {
            reset(referenceResolver);
            component.createEndpoint("jms:queuename?param1=&param2=value2", context);
            Assert.fail("Missing exception due to invalid endpoint uri");
        } catch (CitrusRuntimeException e) {
            Assert.assertTrue(e.getMessage().startsWith("Unable to find parameter"), e.getMessage());
        }
    }