AddonId addon = AddonId.from("test:no_dep_one_lib_excluding_indirect_lib", "1.0.0.Final");
InstallRequest install = addonManager.install(addon);
List<? extends AddonActionRequest> actions = install.getActions();
Assert.assertEquals(1, actions.size());
Assert.assertThat((List<DeployRequest>) actions, everyItem(isA(DeployRequest.class)));
DeployRequest deployRequest = (DeployRequest) actions.get(0);
AddonInfo addonInfo = deployRequest.getRequestedAddonInfo();
Set<File> resources = addonInfo.getResources();
Assert.assertEquals("It should have three resources", 3, resources.size());
}