// Path: src/main/java/net/technolords/micro/model/jaxb/registration/Registration.java
// public class Registration {
//     private Registrar registrar;
//     private String address;
//     private int port;
//     private Service service;
// 
//     @XmlEnum
//     public enum Registrar { CONSUL, EUREKA }
// 
//     @XmlAttribute (name = "registrar", required = true)
//     public Registrar getRegistrar() {
//         return registrar;
//     }
// 
//     public void setRegistrar(Registrar registrar) {
//         this.registrar = registrar;
//     }
// 
//     @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;
//     }
// 
//     @XmlElement (name = "service")
//     public Service getService() {
//         return service;
//     }
// 
//     public void setService(Service service) {
//         this.service = service;
//     }
// }
// 
// 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/ConfigurationsFactory.java
// public class ConfigurationsFactory {
// 
//     public static List<Configuration> createConfigurations() {
//         List<Configuration> configurations = new ArrayList<>();
//         // Get
//         Configuration configuration = new Configuration();
//         configuration.setType("get");
//         configuration.setUrl("/mock/get");
//         configurations.add(configuration);
//         // Post 1
//         configuration = new Configuration();
//         configuration.setType("post");
//         configuration.setUrl("/mock/post1");
//         configurations.add(configuration);
//         // Post 2
//         configuration = new Configuration();
//         configuration.setType("post");
//         configuration.setUrl("/mock/post2");
//         configurations.add(configuration);
//         return configurations;
//     }
// }


import org.apache.http.client.methods.HttpPost;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import net.technolords.micro.model.jaxb.registration.Registration;
import net.technolords.micro.model.jaxb.registration.Service;
import net.technolords.micro.test.factory.ConfigurationsFactory;
package net.technolords.micro.registry.eureka;



public class EurekaRequestFactoryTest {
    private final Logger LOGGER = LoggerFactory.getLogger(getClass());
    private static final String DATASET_FOR_REGISTER = "dataSetForRegister";

    @Test
    public void testCreateRegisterRequest() {
// Path: src/main/java/net/technolords/micro/model/jaxb/registration/Registration.java
// public class Registration {
//     private Registrar registrar;
//     private String address;
//     private int port;
//     private Service service;
// 
//     @XmlEnum
//     public enum Registrar { CONSUL, EUREKA }
// 
//     @XmlAttribute (name = "registrar", required = true)
//     public Registrar getRegistrar() {
//         return registrar;
//     }
// 
//     public void setRegistrar(Registrar registrar) {
//         this.registrar = registrar;
//     }
// 
//     @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;
//     }
// 
//     @XmlElement (name = "service")
//     public Service getService() {
//         return service;
//     }
// 
//     public void setService(Service service) {
//         this.service = service;
//     }
// }
// 
// 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/ConfigurationsFactory.java
// public class ConfigurationsFactory {
// 
//     public static List<Configuration> createConfigurations() {
//         List<Configuration> configurations = new ArrayList<>();
//         // Get
//         Configuration configuration = new Configuration();
//         configuration.setType("get");
//         configuration.setUrl("/mock/get");
//         configurations.add(configuration);
//         // Post 1
//         configuration = new Configuration();
//         configuration.setType("post");
//         configuration.setUrl("/mock/post1");
//         configurations.add(configuration);
//         // Post 2
//         configuration = new Configuration();
//         configuration.setType("post");
//         configuration.setUrl("/mock/post2");
//         configurations.add(configuration);
//         return configurations;
//     }
// }


// Path: src/test/java/net/technolords/micro/registry/eureka/EurekaRequestFactoryTest.java
import org.apache.http.client.methods.HttpPost;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import net.technolords.micro.model.jaxb.registration.Registration;
import net.technolords.micro.model.jaxb.registration.Service;
import net.technolords.micro.test.factory.ConfigurationsFactory;

package net.technolords.micro.registry.eureka;



public class EurekaRequestFactoryTest {
    private final Logger LOGGER = LoggerFactory.getLogger(getClass());
    private static final String DATASET_FOR_REGISTER = "dataSetForRegister";

    @Test
    public void testCreateRegisterRequest() {
        Registration registration = this.createRegistration("mock-service", "mock-1", "localhost", 9090);