/*
 * #%L
 * Wildfly Swarm :: Examples :: Camel Mail
 * %%
 * Copyright (C) 2016 RedHat
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package org.wildfly.swarm.examples.camel.mail;

import org.wildfly.swarm.Swarm;
import org.wildfly.swarm.mail.MailFraction;

public class Main {
    public static void main(String... args) throws Exception {
        MailFraction fraction = MailFraction.defaultFraction();
        Swarm swarm = new Swarm();

        // Configure mock mail server SMTP session
        swarm.fraction(fraction.smtpServer("greenmail", s -> s.host("localhost").port("10110").username("user1@localhost").password("password")));

        // Deploy mock mail server
        swarm.start(true);
        swarm.deploy(Swarm.artifact("com.icegreen:greenmail-webapp:war:1.4.1"));
        swarm.deploy();
    }
}

@@ -866,72 +866,8 @@
 n %7B%0A
-        MailFraction fraction = MailFraction.defaultFraction();%0A
     
@@ -972,24 +972,34 @@
 raction(
-f
+new MailF
 raction
+()
 .smtpSer
@@ -1049,15 +1049,13 @@
 ort(
-%22
 10110
-%22
 ).us

Change Camel-Mail example to - not create 2 SMTP servers. - use an integer instead of an integer-shaped string.