ProvinceModel implements PickerItem { @Override public String getText() { return (null == name) ? "" : name; }  void addCity(CityModel city); CityModel getCity(int position); ArrayList<CityModel> getCityList(); int getCityCount(); List<String> getCityIdList(); List<String> getCityNameList(); @Override String getText(); String toString(); public String id; public String name; }
@Test public void testGetText() { model.name = PROVINCE_NAME; assertEquals(PROVINCE_NAME, model.getText()); model.name = null; assertEquals("", model.getText()); }