for (String p : actual.getPermissions()) {
Assert.assertTrue(expected.contains(p));
}
}
}
<BUG>public static void assertSamePermissions(final Collection<String> expected, final Collection<String> actual) {
if (expected == null) {</BUG>
Assert.assertEquals(null, actual);
} else {
<BUG>for (String p : expected) {
</BUG>
Assert.assertTrue(actual.contains(p));

for (String p : actual.getPermissions()) {
Assert.assertTrue(expected.contains(p));
}
}
}
public static void assertSameCollectionContents(
final Collection expected,
final Collection actual) {
if (expected == null) {
Assert.assertEquals(null, actual);
} else {
for (Object p : expected) {
Assert.assertTrue(actual.contains(p));
