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