ResourceLoader { public InputStream getResourceStream(String path) throws java.io.IOException { ClassLoader cl = this.getClass().getClassLoader(); if (cl == null) { cl = ClassLoader.getSystemClassLoader(); } InputStream stream = cl.getResourceAsStream(path); if (stream == null) { throw new java.io.IOException("Resource not found: " + path); } return stream; }  InputStream getResourceStream(String path);  }
@Test public void testGetResourceStream() throws Exception { System.out.println("getResourceStream"); String path = ""; ResourceLoader instance = new ResourceLoader(); InputStream expResult = null; InputStream result = instance.getResourceStream(path); Assert.assertNotNull(result); }