}
}
@Test
public void installUninstallCommand() throws Exception {
String featureInstallOutput = executeCommand("features:install -v eventadmin", new RolePrincipal("admin"));
System.out.println(featureInstallOutput);
assertFalse(featureInstallOutput.isEmpty());
String featureListOutput = executeCommand("features:list -i | grep eventadmin");
System.out.println(featureListOutput);
assertFalse(featureListOutput.isEmpty());
System.out.println(executeCommand("features:uninstall eventadmin", new RolePrincipal("admin")));
featureListOutput = executeCommand("features:list -i | grep eventadmin");
System.out.println(featureListOutput);
assertTrue(featureListOutput.isEmpty());
}