protected ByteSource stream ( final String resourceId ) { return new ByteSource ( ) { @ Override public InputStream openStream ( ) throws IOException { return loader . getResource ( resourceId ) . getInputStream ( ) ; } } ; }
Wouldn t it be nice if we wrote some tests?