// Path: spring-test-dbunit/src/test/java/com/github/springtestdbunit/testutils/ExtendedTestContextManager.java
// public class ExtendedTestContextManager extends TestContextManager {
// 
// 	private Object testInstance;
// 
// 	public ExtendedTestContextManager(Class<?> testClass) throws Exception {
// 		super(testClass);
// 		getTestContext().markApplicationContextDirty(HierarchyMode.CURRENT_LEVEL);
// 		Constructor<?> constructor = testClass.getDeclaredConstructor();
// 		constructor.setAccessible(true);
// 		this.testInstance = constructor.newInstance();
// 	}
// 
// 	public void prepareTestInstance() throws Exception {
// 		prepareTestInstance(this.testInstance);
// 	}
// 
// 	public Object getTestContextAttribute(String name) {
// 		return getTestContext().getAttribute(name);
// 	}
// 
// 	public TestContext accessTestContext() {
// 		return getTestContext();
// 	}
// 
// }


import static org.junit.Assert.*;
import org.dbunit.dataset.IDataSet;
import org.junit.Before;
import org.junit.Test;
import org.springframework.test.context.TestContext;
import com.github.springtestdbunit.testutils.ExtendedTestContextManager;
package com.github.springtestdbunit.dataset;




/**
 * Tests for {@link XmlDataSetLoader}.
 *
 * @author Phillip Webb
 */
public class XmlDataSetLoaderTest {

	private TestContext testContext;

	private XmlDataSetLoader loader;

	@Before
	public void setup() throws Exception {
		this.loader = new XmlDataSetLoader();
// Path: spring-test-dbunit/src/test/java/com/github/springtestdbunit/testutils/ExtendedTestContextManager.java
// public class ExtendedTestContextManager extends TestContextManager {
// 
// 	private Object testInstance;
// 
// 	public ExtendedTestContextManager(Class<?> testClass) throws Exception {
// 		super(testClass);
// 		getTestContext().markApplicationContextDirty(HierarchyMode.CURRENT_LEVEL);
// 		Constructor<?> constructor = testClass.getDeclaredConstructor();
// 		constructor.setAccessible(true);
// 		this.testInstance = constructor.newInstance();
// 	}
// 
// 	public void prepareTestInstance() throws Exception {
// 		prepareTestInstance(this.testInstance);
// 	}
// 
// 	public Object getTestContextAttribute(String name) {
// 		return getTestContext().getAttribute(name);
// 	}
// 
// 	public TestContext accessTestContext() {
// 		return getTestContext();
// 	}
// 
// }


// Path: spring-test-dbunit/src/test/java/com/github/springtestdbunit/dataset/XmlDataSetLoaderTest.java
import static org.junit.Assert.*;
import org.dbunit.dataset.IDataSet;
import org.junit.Before;
import org.junit.Test;
import org.springframework.test.context.TestContext;
import com.github.springtestdbunit.testutils.ExtendedTestContextManager;

package com.github.springtestdbunit.dataset;




/**
 * Tests for {@link XmlDataSetLoader}.
 *
 * @author Phillip Webb
 */
public class XmlDataSetLoaderTest {

	private TestContext testContext;

	private XmlDataSetLoader loader;

	@Before
	public void setup() throws Exception {
		this.loader = new XmlDataSetLoader();
		ExtendedTestContextManager manager = new ExtendedTestContextManager(getClass());