CityModel implements PickerItem { public String toString() { return name + "[" + id + "]"; }  @Override String getText(); String toString(); public String id; public String name; }
@Test public void testToString() { model.id = CITY_ID; model.name = CITY_NAME; assertEquals("CityName[CityId]", model.toString()); }