### Question:
AgileBiPluginResourceLoader implements IPluginResourceLoader { protected String getSymbolicName( Class<?> aClass ) { return getSymbolicName( aClass.getClassLoader() ); }  @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 testBundleSymbolidName() throws Exception { AgileBiPluginResourceLoader pluginResourceLoader = new AgileBiPluginResourceLoader(); assertNull( pluginResourceLoader.getSymbolicName( getClass() ) ); ClassLoader classLoader = mock( ClassLoader.class, withSettings().extraInterfaces( BundleReference.class ) ); Bundle bundle = mock( Bundle.class ); when( bundle.getSymbolicName() ).thenReturn( "test" ); when( ((BundleReference) classLoader).getBundle() ).thenReturn( bundle ); assertEquals( "test", pluginResourceLoader.getSymbolicName( classLoader ) ); }