### Question:
ClasspathReader extends Reader { @Override public InputStream[] findResourcesAsStream() { ClassLoader classLoader = this.getClass().getClassLoader(); assert classLoader != null; InputStream[] iStreams = null; int counter = 0; if(classesToScan != null) { for (String fullyQualifiedClassName : classesToScan) { if (iStreams == null) { iStreams = new InputStream[classesToScan.size()]; } String classRelativePath = fullyQualifiedClassName.replace(".", "/"); InputStream is = this.getClass().getClassLoader().getResourceAsStream(classRelativePath + ".class"); iStreams[counter++] = is; } } return iStreams; } ClasspathReader();  ClasspathReader(List<String> classesToScan); @Override final void read(); @SuppressWarnings("deprecation") @Override final URL[] findResourcesByClasspath(); @Override URL[] findResources(); final Filter getFilter(); final void setFilter(Filter filter); @Override InputStream[] findResourcesAsStream();  }### Answer:
@Test public void testFindResourcesAsStream() { reader = new ClasspathReader(); InputStream[] streams = reader.findResourcesAsStream(); Assert.assertNull(streams); List<String> classesToScan = new ArrayList<String>(); classesToScan.add("com.impetus.kundera.PersonnelDTO"); classesToScan.add("com.impetus.kundera.query.Person"); reader = new ClasspathReader(classesToScan); streams = reader.findResourcesAsStream(); reader.read(); Assert.assertNotNull(streams); Assert.assertTrue(streams.length > 0); }