p.setId( "test11Plugin" );
PluginServiceDefinition pws = new PluginServiceDefinition();
pws.setTitle( "ws11title" );
pws.setDescription( "ws11description" );
pws.setServiceBeanId( "org.pentaho.test.platform.engine.core.EchoServiceBean" );
p.addWebservice( pws );
// defining bean with null id, the classname will be used as the id
p.addBean( new PluginBeanDefinition( null, "org.pentaho.test.platform.engine.core.EchoServiceBean" ) );
return Arrays.asList( (IPlatformPlugin) p );