### Question:
PrioritiesEntity implements Parcelable { public static PrioritiesEntity instance(String data) { PrioritiesEntity r = new PrioritiesEntity(); if (data != null && !data.trim().isEmpty()) { String[] x = data.split(SEPARATOR); r.chat = Integer.parseInt(x[0]); r.online = Integer.parseInt(x[1]); r.away = Integer.parseInt(x[2]); r.xa = Integer.parseInt(x[3]); r.dnd = Integer.parseInt(x[4]); } return r; } PrioritiesEntity(); private  PrioritiesEntity(Parcel in); static PrioritiesEntity instance(String data); @Override int describeContents(); int getAway(); void setAway(int away); int getChat(); void setChat(int chat); int getDnd(); void setDnd(int dnd); int getOnline(); void setOnline(int online); int getXa(); void setXa(int xa); @Override String toString(); @Override void writeToParcel(Parcel dest, int flags); static final Parcelable.Creator<PrioritiesEntity> CREATOR; }### Answer:
@Test public void instance() throws Exception { PrioritiesEntity e = new PrioritiesEntity(); Assert.assertEquals("5,4,3,2,1", e.toString()); e.setChat(1001); e.setOnline(1000); e.setAway(999); e.setXa(998); e.setDnd(997); Assert.assertEquals("1001,1000,999,998,997", e.toString()); Assert.assertEquals("1001,1000,999,998,997", PrioritiesEntity.instance(e.toString()).toString()); }