// Path: jaxb-missing-rootelement/src/main/java/info/source4code/jaxb/MarshalHelper.java
// public final class MarshalHelper {
// 
//     private static final Logger LOGGER = LoggerFactory
//             .getLogger(MarshalHelper.class);
// 
//     private MarshalHelper() {
//         // not called
//     }
// 
//     public static String marshalError(Car car) throws JAXBException {
//         StringWriter stringWriter = new StringWriter();
// 
//         JAXBContext jaxbContext = JAXBContext.newInstance(Car.class);
//         Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
// 
//         // format the XML output
//         jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
// 
//         jaxbMarshaller.marshal(car, stringWriter);
// 
//         String result = stringWriter.toString();
//         LOGGER.info(result);
//         return result;
//     }
// 
//     public static String marshal(Car car) throws JAXBException {
//         StringWriter stringWriter = new StringWriter();
// 
//         JAXBContext jaxbContext = JAXBContext.newInstance(Car.class);
//         Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
// 
//         // format the XML output
//         jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
// 
//         QName qName = new QName("info.source4code.jaxb.model", "car");
//         JAXBElement<Car> root = new JAXBElement<Car>(qName, Car.class, car);
// 
//         jaxbMarshaller.marshal(root, stringWriter);
// 
//         String result = stringWriter.toString();
//         LOGGER.info(result);
//         return result;
//     }
// }
// 
// Path: jaxb-unmarshal-string/src/main/java/info/source4code/jaxb/model/Car.java
// @XmlRootElement(namespace = "info.source4code.jaxb.model", name = "Car")
// public class Car {
// 
//     private String make;
//     private String manufacturer;
//     private String id;
// 
//     public String getMake() {
//         return make;
//     }
// 
//     @XmlElement
//     public void setMake(String make) {
//         this.make = make;
//     }
// 
//     public String getManufacturer() {
//         return manufacturer;
//     }
// 
//     @XmlElement
//     public void setManufacturer(String manufacturer) {
//         this.manufacturer = manufacturer;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     @XmlAttribute
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String toString() {
//         return "Car [" + "make=" + make + ", manufacturer=" + manufacturer
//                 + ", id=" + id + "]";
//     }
// }


import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import info.source4code.jaxb.MarshalHelper;
import info.source4code.jaxb.model.Car;
import javax.xml.bind.JAXBException;
import javax.xml.bind.MarshalException;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package info.source4code.jaxb;




public class MarshalHelperTest {

    private static final Logger logger = LoggerFactory
            .getLogger(MarshalHelperTest.class);

    public static Car car;

    @BeforeClass
    public static void setUpBeforeClass() {
// Path: jaxb-missing-rootelement/src/main/java/info/source4code/jaxb/MarshalHelper.java
// public final class MarshalHelper {
// 
//     private static final Logger LOGGER = LoggerFactory
//             .getLogger(MarshalHelper.class);
// 
//     private MarshalHelper() {
//         // not called
//     }
// 
//     public static String marshalError(Car car) throws JAXBException {
//         StringWriter stringWriter = new StringWriter();
// 
//         JAXBContext jaxbContext = JAXBContext.newInstance(Car.class);
//         Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
// 
//         // format the XML output
//         jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
// 
//         jaxbMarshaller.marshal(car, stringWriter);
// 
//         String result = stringWriter.toString();
//         LOGGER.info(result);
//         return result;
//     }
// 
//     public static String marshal(Car car) throws JAXBException {
//         StringWriter stringWriter = new StringWriter();
// 
//         JAXBContext jaxbContext = JAXBContext.newInstance(Car.class);
//         Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
// 
//         // format the XML output
//         jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
// 
//         QName qName = new QName("info.source4code.jaxb.model", "car");
//         JAXBElement<Car> root = new JAXBElement<Car>(qName, Car.class, car);
// 
//         jaxbMarshaller.marshal(root, stringWriter);
// 
//         String result = stringWriter.toString();
//         LOGGER.info(result);
//         return result;
//     }
// }
// 
// Path: jaxb-unmarshal-string/src/main/java/info/source4code/jaxb/model/Car.java
// @XmlRootElement(namespace = "info.source4code.jaxb.model", name = "Car")
// public class Car {
// 
//     private String make;
//     private String manufacturer;
//     private String id;
// 
//     public String getMake() {
//         return make;
//     }
// 
//     @XmlElement
//     public void setMake(String make) {
//         this.make = make;
//     }
// 
//     public String getManufacturer() {
//         return manufacturer;
//     }
// 
//     @XmlElement
//     public void setManufacturer(String manufacturer) {
//         this.manufacturer = manufacturer;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     @XmlAttribute
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String toString() {
//         return "Car [" + "make=" + make + ", manufacturer=" + manufacturer
//                 + ", id=" + id + "]";
//     }
// }


// Path: jaxb-missing-rootelement/src/test/java/info/source4code/jaxb/MarshalHelperTest.java
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import info.source4code.jaxb.MarshalHelper;
import info.source4code.jaxb.model.Car;
import javax.xml.bind.JAXBException;
import javax.xml.bind.MarshalException;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

package info.source4code.jaxb;




public class MarshalHelperTest {

    private static final Logger logger = LoggerFactory
            .getLogger(MarshalHelperTest.class);

    public static Car car;

    @BeforeClass
    public static void setUpBeforeClass() {
        car = new Car();