HaloSegmentationTag implements Comparable<HaloSegmentationTag>, Parcelable { @Api(2.41) @NonNull public static HaloSegmentationTag segmentMarketTag(@HaloMarket.MarketDefinition String name) { return new HaloSegmentationTag(name, null, false, true); } protected  HaloSegmentationTag(); @Api(1.0)  HaloSegmentationTag(String name, Serializable value); protected  HaloSegmentationTag(Parcel in); private  HaloSegmentationTag(String name, Serializable value, boolean isDevice, boolean isMarket); @Api(2.41) @NonNull static HaloSegmentationTag segmentMarketTag(@HaloMarket.MarketDefinition String name); @Api(1.0) String getName(); @Api(1.0) @Nullable String getId(); @Api(1.0) String getValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override int compareTo(@NonNull HaloSegmentationTag another); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); static final Parcelable.Creator<HaloSegmentationTag> CREATOR; }
@Test public void thatCanCreateAMarketSegmentationTag() { HaloSegmentationTag tag = HaloSegmentationTag.segmentMarketTag(HaloMarket.ÅLAND_ISLANDS); assertThat(tag.mTagType).isEqualTo("000000000000000000000003"); assertThat(tag.mName).isEqualTo("Åland Islands"); assertThat(tag.mId).isEqualTo(HaloMarket.idFromMarket(HaloMarket.ÅLAND_ISLANDS)); }