// UI Depends on convert, facets, ui-spi, environment
@SuppressWarnings("unchecked")
@Test
public void testInstallUIAddon() throws IOException
{
InstallRequest install;
AddonId addonUI = AddonId.from("org.jboss.forge.addon:ui", "2.0.0.Alpha6");
install = addonManager.install(addonUI);
List<?> actions = install.getActions();
Assert.assertEquals(5, install.getActions().size());
Assert.assertThat((List<DeployRequest>) actions, everyItem(isA(DeployRequest.class)));
install.perform();
install = addonManager.install(addonUI);
// No actions should be needed, since we have all the needed addons
Assert.assertEquals(0, install.getActions().size());
}