@@ -0,0 +1,1728 @@
+package rapture.kernel;%0A%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport rapture.common.CallingContext;%0Aimport rapture.common.PluginTransportItem;%0Aimport rapture.common.api.IndexApi;%0Aimport rapture.common.api.PluginApi;%0A%0Apublic class PluginApiTest %7B%0A%0A    @BeforeClass%0A    public static void setUpBeforeClass() throws Exception %7B%0A    %7D%0A%0A    @AfterClass%0A    public static void tearDownAfterClass() throws Exception %7B%0A    %7D%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A    %7D%0A%0A    @Test%0A    public void testGetPluginItem() %7B%0A        IndexApi index = Kernel.getIndex();%0A        PluginApi plugin = Kernel.getPlugin();%0A        CallingContext context = ContextFactory.getKernelUser();%0A        String tableUri = %22table://foo/bar%22;%0A        String indexUri = %22index://baz%22;%0A%0A        index.createTable(context, tableUri, %22TABLE %7B%7D USING MEMORY %7B%7D%22);%0A        index.createIndex(context, indexUri, %22field1($1) number%22);%0A%0A        String pluginName = %22Jeff%22;%0A%0A        plugin.createManifest(context, pluginName);%0A        plugin.addManifestItem(context, pluginName, tableUri);%0A        plugin.addManifestItem(context, pluginName, indexUri);%0A        plugin.verifyPlugin(context, pluginName);%0A%0A        PluginTransportItem item1 = plugin.getPluginItem(context, tableUri);%0A        System.out.println(new String(item1.getContent()));%0A        assertNotNull(item1);%0A%0A        PluginTransportItem item2 = plugin.getPluginItem(context, indexUri);%0A        System.out.println(new String(item2.getContent()));%0A        assertNotNull(item2);%0A    %7D%0A%7D%0A

Add test for RAP-4197