// Path: src/main/java/fr/inria/gforge/spoon/util/XMLLoader.java
// public final class XMLLoader {
// 	private XMLLoader() {
// 	}
// 
// 	public static SpoonModel load(InputStream inputStream) throws Exception {
// 		JAXBContext jaxbContext = JAXBContext.newInstance(SpoonModel.class);
// 		Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
// 		return (SpoonModel) jaxbUnmarshaller.unmarshal(inputStream);
// 	}
// }


import fr.inria.gforge.spoon.SpoonModel;
import fr.inria.gforge.spoon.util.XMLLoader;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
package fr.inria.gforge.spoon.unit;



/**
 * Created at 19/11/2013 10:14.<br>
 *
 * @author Christophe DUFOUR
 */
public class XMLLoaderTest {
    @Test
    public void simpleTest() throws Exception {
// Path: src/main/java/fr/inria/gforge/spoon/util/XMLLoader.java
// public final class XMLLoader {
// 	private XMLLoader() {
// 	}
// 
// 	public static SpoonModel load(InputStream inputStream) throws Exception {
// 		JAXBContext jaxbContext = JAXBContext.newInstance(SpoonModel.class);
// 		Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
// 		return (SpoonModel) jaxbUnmarshaller.unmarshal(inputStream);
// 	}
// }


// Path: src/test/java/fr/inria/gforge/spoon/unit/XMLLoaderTest.java
import fr.inria.gforge.spoon.SpoonModel;
import fr.inria.gforge.spoon.util.XMLLoader;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;

package fr.inria.gforge.spoon.unit;



/**
 * Created at 19/11/2013 10:14.<br>
 *
 * @author Christophe DUFOUR
 */
public class XMLLoaderTest {
    @Test
    public void simpleTest() throws Exception {
        final SpoonModel model = XMLLoader.load(XMLLoaderTest.class.getResourceAsStream("spoon.xml"));