//make sure we load custom yalp.plugins-file
pc.yalp_plugins_resourceName = "yalp/plugins/custom-yalp.plugins";
pc.loadPlugins();
YalpPlugin corePlugin_first_instance = pc.getPluginInstance(CorePlugin.class);
YalpPlugin testPlugin_first_instance = pc.getPluginInstance(TestPlugin.class);
//the following plugin-list should match the list in the file 'yalp.plugins'
assertThat(pc.getEnabledPlugins()).containsExactly(
corePlugin_first_instance,
testPlugin_first_instance);
assertThat(pc.getAllPlugins()).containsExactly(
corePlugin_first_instance,
testPlugin_first_instance);
pc.reloadApplicationPlugins();
YalpPlugin testPlugin_second_instance = pc.getPluginInstance(TestPlugin.class);
assertThat(pc.getPluginInstance(CorePlugin.class)).isEqualTo(corePlugin_first_instance);
assertThat(testPlugin_second_instance).isNotEqualTo(testPlugin_first_instance);
}