HaloSegmentationTag implements Comparable<HaloSegmentationTag>, Parcelable { @Api(1.0) public String getValue() { return mValue; } 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 thatCanCreateASegmentationTag() { HaloSegmentationTag tag = new HaloSegmentationTag("dummy", "dummyData"); assertThat(tag.getValue()).isEqualTo("dummyData"); }