public void testInstantiateClassLoaderStringBeanContextAppletInitializer_Ser()
throws Exception {
ClassLoader loader = new SerClassLoader();
BeanContext context = new BeanContextSupport();
AppletInitializer appInit = new MockAppletInitializer();
Object bean = Beans.instantiate(loader, MOCK_JAVA_BEAN2, context,
appInit);
assertEquals("as_object", (String) bean.getClass().getMethod(
"getPropertyOne", (Class[]) null).invoke(bean, (Object[]) null));
assertSame(loader, bean.getClass().getClassLoader());
assertTrue(context.contains(bean));
}