// lets clear the actualVersion as we usually don't set one and it gets defaulted
actual.setVersion(requirements.getVersion());
// lets sort them both to ensure ordering
requirements.sortProfilesRequirements();
actual.sortProfilesRequirements();
boolean valid = RequirementsJson.equal(requirements, actual);
if (!valid) {
System.out.println("Expected: " + RequirementsJson.toJSON(requirements));
System.out.println("Actual: " + RequirementsJson.toJSON(actual));