### Question:
ComponentModuleDescriptor extends AbstractModuleDescriptor { @Override protected void loadClass(Plugin plugin, String clazz) throws PluginParseException { } ComponentModuleDescriptor(); @Override Object getModule(); String getModuleClassName();  }### Answer:
@Test public void testEnableDoesNotLoadClass() throws ClassNotFoundException { ComponentModuleDescriptor desc = new ComponentModuleDescriptor(); Element e = DocumentHelper.createElement("foo"); e.addAttribute("key", "foo"); e.addAttribute("class", Foo.class.getName()); Plugin plugin = mock(Plugin.class); when(plugin.<Foo>loadClass((String) anyObject(), (Class<?>) anyObject())).thenReturn(Foo.class); desc.init(plugin, e); Foo.called = false; desc.enabled(); assertFalse(Foo.called); }