PojoPlugin implements PlugIn { public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { initBeanUtils(); config.setControllerConfig(new KualiControllerConfig(config.getControllerConfig())); } PojoPlugin(); static void initBeanUtils(); void init(ActionServlet servlet, ModuleConfig config); void destroy();  }
@Test public void testGetChildCollectionThrowsNestedNullException() throws Exception { new PojoPlugin().init(null, new ModuleConfigImpl()); TestCollectionHolderHolder tchh = new TestCollectionHolderHolder(); tchh.setTch(new TestCollectionHolder()); Object result = ObjectUtils.getPropertyValue(tchh, "tch.collection"); assertFalse("".equals(result)); assertTrue(null == result); }
@Test public void testNestedNullIsWriteable() throws Exception { new PojoPlugin().init(null, new ModuleConfigImpl()); TestCollectionHolderHolder tchh = new TestCollectionHolderHolder(); assertTrue(PropertyUtils.isWriteable(tchh, "tch2.collection")); }