public List<IPlatformPlugin> getPlugins( IPentahoSession session ) throws PlatformPluginRegistrationException {
PlatformPlugin p = new PlatformPlugin();
// need to set source description - classloader needs it
p.setId( "good-plugin1" );
p.setSourceDescription( "good-plugin1" );
p.addBean( new PluginBeanDefinition( "TestMockComponent",
"org.pentaho.test.platform.engine.core.MockComponent" ) );
p.addBean( new PluginBeanDefinition( "TestPojo", "java.lang.String" ) );
p.addBean( new PluginBeanDefinition( "TestClassNotFoundComponent", "org.pentaho.test.NotThere" ) );
return Arrays.asList( (IPlatformPlugin) p );
}