try
{
TestClassLoader classLoader = new TestClassLoader();
Thread.currentThread().setContextClassLoader(classLoader);
XmlToObject transformer = new XmlToObject();
transformer.initialise();
assertEquals(classLoader, transformer.getXStream().getClassLoader());
}
catch (Exception e)
{
fail(e.getMessage());