<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:spring="http://www.springframework.org/schema/beans"
       xmlns:ssl="http://www.mulesource.org/schema/mule/ssl/2.0"
    xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
       http://www.mulesource.org/schema/mule/ssl/2.0 http://www.mulesource.org/schema/mule/ssl/2.0/mule-ssl.xsd">

    <ssl:connector name="SslConnector">
        <ssl:client path="clientKeyStore" storePassword="mulepassword"/>
        <ssl:key-store path="serverKeystore" storePassword="mulepassword" keyPassword="mulepassword"/>
        <ssl:server path="trustStore" storePassword="mulepassword"/>
    </ssl:connector>

    <endpoint name="in" address="ssl://localhost:60195" synchronous="true"/>

    <spring:bean name="certificates" class="org.mule.transport.ssl.SaveCertificateCallback"/>

    <model name="main">

        <custom-service name="service" class="org.mule.tck.testmodels.mule.TestSedaService">
            <inbound>
                <ssl:inbound-endpoint ref="in"/>
            </inbound>
            <pooled-component>
                <prototype-object class="org.mule.tck.functional.FunctionalTestComponent">
                    <properties>
                        <spring:entry key="eventCallback" value-ref="certificates"/>
                    </properties>
                </prototype-object>
            </pooled-component>
        </custom-service>

    </model>

</mule>
