}
@Test
public void testGetInstalledPlugins() {
PluginInfo[] pluginInfos = new PluginInfo[2];
PluginInfo mockPlugin1 = mockHelper.createMock(PluginInfo.class);
PluginInfo mockPlugin2 = mockHelper.createMock(PluginInfo.class);
EasyMock.expect(mockPlugin1.getInternalName()).andReturn("plugin1");
EasyMock.expect(mockPlugin2.getInternalName()).andReturn("plugin2");
pluginInfos[0] = mockPlugin1;
pluginInfos[1] = mockPlugin2;
expect(mockPluginManager.getPluginInformation()).andReturn(pluginInfos);
mockHelper.replayAll();