### Question:
Capabilities { public boolean containsAll(final Set<Capability> requiredItems) { return capabilities.containsAll(requiredItems); } Capabilities(Capability... capabilities);  Capabilities(Capabilities capabilities);  Capabilities(Collection<Capability> capabilities); void set(Capability... capabilities); void set(Capabilities capabilities); void set(Collection<Capability> capabilities); void addAll(Capability... capabilities); void addAll(Capabilities capabilities); boolean containsAll(final Set<Capability> requiredItems); boolean containsAll(final Capabilities capabilities); boolean containsAll(Capability... capabilities); boolean isEmpty(); static List<Integer> toIntList(Capabilities capabilities); static Capabilities fromIntList(List<Integer> capabilities); static Capabilities fromStringList(String list); String toStringList(); static boolean hasMandatoryCapability(Capabilities capabilities); static boolean hasMandatoryCapability(Capabilities capabilities, Capability mandatoryCapability); @Override String toString(); String prettyPrint(); int size(); static final Capabilities app; }### Answer:
@Test public void testNoCapabilitiesAvailable() { Capabilities DUT = new Capabilities(); assertTrue(DUT.containsAll(new HashSet<>())); assertFalse(DUT.containsAll(new Capabilities(SEED_NODE))); }
@Test public void testO() { Capabilities DUT = new Capabilities(TRADE_STATISTICS); assertTrue(DUT.containsAll(new HashSet<>())); }
@Test public void testSingleMatch() { Capabilities DUT = new Capabilities(TRADE_STATISTICS); assertTrue(DUT.containsAll(new Capabilities(TRADE_STATISTICS))); assertFalse(DUT.containsAll(new Capabilities(SEED_NODE))); }
@Test public void testMultiMatch() { Capabilities DUT = new Capabilities(TRADE_STATISTICS, TRADE_STATISTICS_2); assertTrue(DUT.containsAll(new Capabilities(TRADE_STATISTICS))); assertFalse(DUT.containsAll(new Capabilities(SEED_NODE))); assertTrue(DUT.containsAll(new Capabilities(TRADE_STATISTICS, TRADE_STATISTICS_2))); assertFalse(DUT.containsAll(new Capabilities(SEED_NODE, TRADE_STATISTICS_2))); }