*
* @throws IOException
*/
@Test
public void testGetAsStream() throws IOException {
ClasspathServerResource resource = new ClasspathServerResource(
"org/richfaces/test/resource.txt");
InputStream inputStream = resource.getAsStream();
assertNotNull(inputStream);
try {
byte[] buff = new byte[20];
assertEquals(3, inputStream.read(buff));