Not sure how this is possible. I re-read up on getResourceAsStream and it\'s always returning null.
InputStream source = this.getClass().getResourceAsStream(
It's not finding the resource on the classpath. If you are using junit and maven make sure the resources are copied on the target/test-classes by adding file directive on section
You can also find out the location of your class in the file system by using
this.getClass().getResource(".")
and checking to see if the resource is there