// Path: src/main/java/net/technolords/micro/model/jaxb/registration/HealthCheck.java
// public class HealthCheck {
//     private boolean enabled;
//     private String interval;
//     private String deRegisterAfter;
// 
//     @XmlAttribute (name = "enabled")
//     public boolean isEnabled() {
//         return enabled;
//     }
// 
//     public void setEnabled(boolean enabled) {
//         this.enabled = enabled;
//     }
// 
//     @XmlAttribute (name = "interval")
//     public String getInterval() {
//         return interval;
//     }
// 
//     public void setInterval(String interval) {
//         this.interval = interval;
//     }
// 
//     @XmlAttribute (name = "deregister-after")
//     public String getDeRegisterAfter() {
//         return deRegisterAfter;
//     }
// 
//     public void setDeRegisterAfter(String deRegisterAfter) {
//         this.deRegisterAfter = deRegisterAfter;
//     }
// }
// 
// Path: src/main/java/net/technolords/micro/model/jaxb/registration/Service.java
// public class Service {
//     private String address;
//     private int port;
//     private String id;
//     private String name;
//     private HealthCheck healthCheck;
// 
//     @XmlAttribute (name = "address")
//     public String getAddress() {
//         return address;
//     }
// 
//     public void setAddress(String address) {
//         this.address = address;
//     }
// 
//     @XmlAttribute (name = "port")
//     public int getPort() {
//         return port;
//     }
// 
//     public void setPort(int port) {
//         this.port = port;
//     }
// 
//     @XmlAttribute (name = "id")
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     @XmlAttribute (name = "name")
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     @XmlElement (name = "health-check")
//     public HealthCheck getHealthCheck() {
//         return healthCheck;
//     }
// 
//     public void setHealthCheck(HealthCheck healthCheck) {
//         this.healthCheck = healthCheck;
//     }
// }


import net.technolords.micro.model.jaxb.registration.HealthCheck;
import net.technolords.micro.model.jaxb.registration.Service;
package net.technolords.micro.test.factory;


public class ServiceFactory {

    /**
     * Create a service like:
     *
     *  <service address="192.168.10.10" port="9090" id="mock-1" name="mock-service" >
     *      <health-check enabled="true" interval="60s" deregister-after="90m"/>
     *  </service>
     *
     * @return
     *  A service
     */
    public static Service createService() {
        Service service = new Service();
        service.setId("mock-1");
        service.setName("mock-service");
        service.setAddress("192.168.10.10");
        service.setPort(9090);
// Path: src/main/java/net/technolords/micro/model/jaxb/registration/HealthCheck.java
// public class HealthCheck {
//     private boolean enabled;
//     private String interval;
//     private String deRegisterAfter;
// 
//     @XmlAttribute (name = "enabled")
//     public boolean isEnabled() {
//         return enabled;
//     }
// 
//     public void setEnabled(boolean enabled) {
//         this.enabled = enabled;
//     }
// 
//     @XmlAttribute (name = "interval")
//     public String getInterval() {
//         return interval;
//     }
// 
//     public void setInterval(String interval) {
//         this.interval = interval;
//     }
// 
//     @XmlAttribute (name = "deregister-after")
//     public String getDeRegisterAfter() {
//         return deRegisterAfter;
//     }
// 
//     public void setDeRegisterAfter(String deRegisterAfter) {
//         this.deRegisterAfter = deRegisterAfter;
//     }
// }
// 
// Path: src/main/java/net/technolords/micro/model/jaxb/registration/Service.java
// public class Service {
//     private String address;
//     private int port;
//     private String id;
//     private String name;
//     private HealthCheck healthCheck;
// 
//     @XmlAttribute (name = "address")
//     public String getAddress() {
//         return address;
//     }
// 
//     public void setAddress(String address) {
//         this.address = address;
//     }
// 
//     @XmlAttribute (name = "port")
//     public int getPort() {
//         return port;
//     }
// 
//     public void setPort(int port) {
//         this.port = port;
//     }
// 
//     @XmlAttribute (name = "id")
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     @XmlAttribute (name = "name")
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     @XmlElement (name = "health-check")
//     public HealthCheck getHealthCheck() {
//         return healthCheck;
//     }
// 
//     public void setHealthCheck(HealthCheck healthCheck) {
//         this.healthCheck = healthCheck;
//     }
// }


// Path: src/test/java/net/technolords/micro/test/factory/ServiceFactory.java
import net.technolords.micro.model.jaxb.registration.HealthCheck;
import net.technolords.micro.model.jaxb.registration.Service;

package net.technolords.micro.test.factory;


public class ServiceFactory {

    /**
     * Create a service like:
     *
     *  <service address="192.168.10.10" port="9090" id="mock-1" name="mock-service" >
     *      <health-check enabled="true" interval="60s" deregister-after="90m"/>
     *  </service>
     *
     * @return
     *  A service
     */
    public static Service createService() {
        Service service = new Service();
        service.setId("mock-1");
        service.setName("mock-service");
        service.setAddress("192.168.10.10");
        service.setPort(9090);
        HealthCheck healthCheck = new HealthCheck();