### Question:
OSGIPluginRegistryExtension implements PluginRegistryExtension { public static OSGIPluginRegistryExtension getInstance() { if ( INSTANCE == null ) { throw new IllegalStateException( "Kettle is supposed to construct this first" ); } return INSTANCE; } OSGIPluginRegistryExtension(); static OSGIPluginRegistryExtension getInstance(); KarafBoot getKarafBoot(); synchronized void init( final PluginRegistry registry ); @Override void searchForType( PluginTypeInterface pluginType ); @Override String getPluginId( Class<? extends PluginTypeInterface> pluginType, Object pluginClass );  }### Answer:
@Test public void testNativeRegistration() throws KettlePluginException { List<PluginInterface> plugins = PluginRegistry.getInstance().getPlugins(PluginRegistryPluginType.class); int initialSize = plugins != null ? plugins.size() : 0; PluginRegistryPluginType pluginRegistryPluginType = new PluginRegistryPluginType(); pluginRegistryPluginType.searchPlugins(); plugins = PluginRegistry.getInstance().getPlugins(PluginRegistryPluginType.class); assertTrue( plugins.size() > initialSize ); }