code: public static CapabilityRequirement hasAll(Capability... capabilities) {
      return new CapabilityRequirement(c -> {
        for (Capability capability : capabilities) {
          if (!c.hasCapability(capability))
            return false;
        }
        return true;
      });
    }
docs: Creates a requirement that a given set of capabilities have all of the
  specified capabilities.
  
  @param capabilities	The capabilities that a tested set must have.
  @return			The requirement.