public void testContainsAll() { final RevFlag flag1 = rw.newFlag("flag_1"); final RevFlag flag2 = rw.newFlag("flag_2"); final RevFlagSet set1 = new RevFlagSet(); assertTrue(set1.add(flag1)); assertTrue(set1.add(flag2)); assertTrue(set1.containsAll(set1)); assertTrue(set1.containsAll(Arrays .asList(new RevFlag[] { flag1, flag2 }))); final RevFlagSet set2 = new RevFlagSet(); set2.add(rw.newFlag("flag_3")); assertFalse(set1.containsAll(set2)); }