### Question:
TCStringV2 implements TCString { @Override public IntIterable getPurposesConsent() { if (cache.add(CORE_PURPOSES_CONSENT)) { purposesConsent = fillBitSet(bbv, CORE_PURPOSES_CONSENT); } return purposesConsent; } private  TCStringV2(BitReader bbv); private  TCStringV2(BitReader bbv, BitReader... theRest); static TCStringV2 fromBitVector(BitReader coreBitVector, BitReader... remainingVectors); @Override IntIterable getPubPurposesConsent(); @Override int getVersion(); @Override Instant getCreated(); @Override Instant getLastUpdated(); @Override int getCmpId(); @Override int getCmpVersion(); @Override int getConsentScreen(); @Override String getConsentLanguage(); @Override int getVendorListVersion(); @Override IntIterable getPurposesConsent(); @Override IntIterable getVendorConsent(); @Override boolean getDefaultVendorConsent(); @Override int getTcfPolicyVersion(); @Override boolean isServiceSpecific(); @Override boolean getUseNonStandardStacks(); @Override IntIterable getSpecialFeatureOptIns(); @Override IntIterable getPurposesLITransparency(); @Override boolean getPurposeOneTreatment(); @Override String getPublisherCC(); @Override IntIterable getVendorLegitimateInterest(); @Override List<PublisherRestriction> getPublisherRestrictions(); @Override IntIterable getAllowedVendors(); @Override IntIterable getDisclosedVendors(); @Override IntIterable getPubPurposesLITransparency(); @Override IntIterable getCustomPurposesConsent(); @Override IntIterable getCustomPurposesLITransparency(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testPurposesConsent() { String consent = "COwxsONOwxsONKpAAAENAdCAAMAAAAAAAAAAAAAAAAAA"; TCString tcModel = parse(consent); assertTrue(tcModel.getPurposesConsent().containsAll(1, 2)); }