Country { @Generated(hash = 1942392019) public void refresh() { if (myDao == null) { throw new DaoException("Entity is detached from DAO context"); } myDao.refresh(this); } @Keep  Country(Long id, String name); @Keep  Country(String tag, List<CountryName> names, String cc2, String cc3); @Generated(hash = 668024697)  Country(); @Generated(hash = 1635152172)  Country(Long id, String tag, String cc2, String cc3); Long getId(); void setId(Long id); String getTag(); void setTag(String tag); @Generated(hash = 2035155252) List<CountryName> getNames(); @Generated(hash = 1832659617) synchronized void resetNames(); @Generated(hash = 128553479) void delete(); @Generated(hash = 1942392019) void refresh(); @Generated(hash = 713229351) void update(); @Generated(hash = 1445920194) void __setDaoSession(DaoSession daoSession); String getCc2(); void setCc2(String cc2); String getCc3(); void setCc3(String cc3);  }
@Test public void refreshWithNullDaoSession_throwsDaoException() { assertThrows(DaoException.class, () -> mCountry.refresh()); }