Device implements Parcelable { @Api(1.0) @Nullable public String getEmail() { return mEmail; } Device();  Device(@Nullable String alias, @Nullable String id, @Nullable String email, @Nullable String notificationToken, @Nullable String appId); protected  Device(Parcel in); @Api(2.3) @Nullable String getAppId(); @Api(1.0) @Nullable String getAlias(); @Api(1.0) @Nullable String getEmail(); @Api(1.0) @Nullable List<DeviceInfo> getDevices(); @Api(2.0) void setNotificationsToken(@Nullable String notificationToken); @Nullable @Api(1.0) String getNotificationsToken(); @Api(1.0) @Nullable String getId(); @Api(1.0) @NonNull List<HaloSegmentationTag> getTags(); @Api(1.0) void addTags(@NonNull List<HaloSegmentationTag> systemTags, boolean shouldOverrideTags); @Api(1.0) void addTag(@NonNull HaloSegmentationTag segmentationTag); @Api(2.33) void addRepeatedKeyTags(@NonNull HaloSegmentationTag... segmentationTags); @NonNull static List<T> addToList(@Nullable List<T> list, @Nullable T[] items); @Api(1.0) boolean removeTag(HaloSegmentationTag segmentationTag); @Api(2.0) @SuppressWarnings("unchecked") static String serialize(@NonNull Device device, @NonNull Parser.Factory parser); @Nullable @SuppressWarnings("unchecked") static Device deserialize(@Nullable String device, @NonNull Parser.Factory parser); void makeAnonymous(); boolean isAnonymous(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); static final Creator<Device> CREATOR; }
@Test public void thatSetemail() { Device user = new Device(null, null, "mobgen@mobgen.com", null, "5"); assertThat(user.getEmail()).isEqualTo("mobgen@mobgen.com"); }