ClientId implements Parcelable { public final int getPort() { return mPort; } 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 getPort() { int port = mClientId.getPort(); assertThat(port, is(equalTo(12345))); }