### Question:
AgileBiPluginResourceLoader implements IPluginResourceLoader { @Override public byte[] getResourceAsBytes( Class<? extends Object> aClass, String s ) { try { return IOUtils.toByteArray( this.getResourceAsStream( aClass, s ) ); } catch ( IOException e ) { return null; } catch ( NullPointerException e ) { return null; } }  @Override byte[] getResourceAsBytes( Class<? extends Object> aClass, String s ); @Override String getResourceAsString( Class<? extends Object> aClass, String s ); @Override String getResourceAsString( Class<? extends Object> aClass, String s, String s1 ); @Override InputStream getResourceAsStream( Class<?> aClass, String s ); @Override InputStream getResourceAsStream( ClassLoader classLoader, String s ); @Override List<URL> findResources( Class<?> aClass, String s ); @Override List<URL> findResources( ClassLoader classLoader, String s ); @Override ResourceBundle getResourceBundle( Class<?> aClass, String s ); @Override String getPluginSetting( Class<?> aClass, String s ); @Override String getPluginSetting( Class<?> aClass, String s, String s1 ); @Override String getPluginSetting( ClassLoader classLoader, String s, String s1 );  }### Answer:
@Test public void getResourceAsBytes() throws Exception { assertTrue( resourceLoader.getResourceAsBytes( getClass(), "README.md" ).length > 0 ); assertNull( resourceLoader.getResourceAsBytes( getClass(), "bogus.md" ) ); }