assertThat("Mismatch on row " + i + " on changeKey", changes.get(i).getChangeKey(), equalTo(expected.get(i).getChangeKey()));
assertThat("Mismatch on row " + i + " on content", changes.get(i).getContent(), equalToIgnoringWhiteSpace(expected.get(i).getContent()));
ImmutableList<ArtifactRestrictions> restrictions = expected.get(i).getRestrictions() == null ?
Lists.immutable.of(
new ArtifactEnvironmentRestrictions(UnifiedSet.newSetWith("q1"), UnifiedSet.<String>newSet()),
new ArtifactPlatformRestrictions(UnifiedSet.newSetWith("DB2", "SYBASE_ASE", "HSQL"), UnifiedSet.<String>newSet())
) :
expected.get(i).getRestrictions();
assertEquals(2, changes.get(i).getRestrictions().size());
assertRestrictions(ArtifactEnvironmentRestrictions.class, restrictions, changes.get(i));
assertRestrictions(ArtifactPlatformRestrictions.class, restrictions, changes.get(i));