public MailConfiguration getConfiguration() {
        if (configuration == null) {
            configuration = new MailConfiguration(getCamelContext());
        }
        return configuration;
    }
@Test
    public void testSMTPEndpointWithSubjectOption() {
        MailEndpoint endpoint = checkEndpoint("smtp://myhost:25?subject=hello");
        MailConfiguration config = endpoint.getConfiguration();
        assertEquals("smtp", config.getProtocol(), "getProtocol()");
        assertEquals("myhost", config.getHost(), "getHost()");
        assertEquals(25, config.getPort(), "getPort()");
        assertEquals("hello", config.getSubject(), "getSubject()");
        assertFalse(config.isDebugMode());
    }