@ Override public Class < ? > loadClass ( String classname ) throws ClassNotFoundException { return getClass ( ) . getClassLoader ( ) . loadClass ( classname ) ; }
Get the class loader of the mock rather than that of the bundle .