@Test
public void testCreateFailConstructor() {

    PluginDescriptor pluginDescriptor = mock(PluginDescriptor.class);
    when(pluginDescriptor.getPluginClass()).thenReturn(AnotherFailTestPlugin.class.getName());
    PluginWrapper pluginWrapper = mock(PluginWrapper.class);
    when(pluginWrapper.getDescriptor()).thenReturn(pluginDescriptor);
    when(pluginWrapper.getPluginClassLoader()).thenReturn(getClass().getClassLoader());
    PluginFactory pluginFactory = new DefaultPluginFactory();
    Plugin plugin = pluginFactory.create(pluginWrapper);
    assertNull(plugin);
}