ClientId implements Parcelable { public final String getAddress() { return mAddress; } private  ClientId(Parcel in);  ClientId(long id, String nickname, String address, int port, String password);  ClientId(Cursor c); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); @Override boolean equals(Object o); @Override int hashCode(); final long getId(); final String getNickname(); final String getAddress(); final int getPort(); final String getPassword(); void updateHost(String nickname, String address, int port, String password); static final String TAG; static final Parcelable.Creator<ClientId> CREATOR; }
@Test public void getAddress() { String address = mClientId.getAddress(); assertThat(address, is(equalTo("192.168.1.99"))); }