assert installationSteps != null : "Installation steps were null";
assert installationSteps.size() == 3 : "Incorrect number of installation steps. Expected: 3, Found: "
+ installationSteps.size();
PackageInstallationStep step = installationSteps.get(0);
assert step.getOrder() == 0 : "Incorrect order applied for step";
assert step.getDescription() != null : "Description not saved";
assert step.getResult() == ContentResponseResult.SUCCESS : "Incorrect status on step. Expected: SUCCESS, Found: "
+ step.getResult();
assert step.getErrorMessage() == null : "Error message found on successful step";
assert step.getInstalledPackageHistory() != null : "Relationship to packge history isn't established";
step = installationSteps.get(1);
assert step.getOrder() == 1 : "Incorrect order applied for step";
assert step.getDescription() != null : "Description not saved";
assert step.getResult() == ContentResponseResult.NOT_PERFORMED : "Incorrect status on step. Expected: NOT_PERFORMED, Found: "
+ step.getResult();
assert step.getErrorMessage() == null : "Error message found on skipped step";
assert step.getInstalledPackageHistory() != null : "Relationship to packge history isn't established";
step = installationSteps.get(2);
assert step.getOrder() == 2 : "Incorrect order applied for step";
assert step.getDescription() != null : "Description not saved";
assert step.getResult() == ContentResponseResult.FAILURE : "Incorrect status on step. Expected: FAILURE, Found: "
+ step.getResult();
assert step.getErrorMessage() != null : "Null error message found on error step";
assert step.getInstalledPackageHistory() != null : "Relationship to packge history isn't established";
historyEntity = (InstalledPackageHistory) results.get(1);
assert historyEntity.getStatus() == InstalledPackageHistoryStatus.BEING_INSTALLED : "Incorrect status on first entity. Expected: BEING_INSTALLED, Found: "
+ historyEntity.getStatus();