Not sure how this is possible. I re-read up on getResourceAsStream and it\'s always returning null.
InputStream source = this.getClass().getResourceAsStream(
Try MyClass.getResourceAsStream().
Also try putting the test.xml in your classpath. For instance, in an Eclipse web project put text.xml in webcontent/WEB-INF/classes