@BeforeTest
public void setUp() throws Exception {
factory = (MarshallerFactory) Thread.currentThread().getContextClassLoader().loadClass("org.jboss.marshalling.river.RiverMarshallerFactory").newInstance();
MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setCreator(new SunReflectiveCreator());
configuration.setClassResolver(new ContextClassResolver());
marshaller = factory.createMarshaller(configuration);
unmarshaller = factory.createUnmarshaller(configuration);
}