AnalysisTag { @Generated(hash = 1998124482) public List<AnalysisTagName> getNames() { if (names == null) { final DaoSession daoSession = this.daoSession; if (daoSession == null) { throw new DaoException("Entity is detached from DAO context"); } AnalysisTagNameDao targetDao = daoSession.getAnalysisTagNameDao(); List<AnalysisTagName> namesNew = targetDao._queryAnalysisTag_Names(tag); synchronized (this) { if (names == null) { names = namesNew; } } } return names; } @Generated(hash = 1494809953)  AnalysisTag(Long id, String tag, Boolean enabled); @Keep  AnalysisTag(String tag, List<AnalysisTagName> names); @Generated(hash = 338711806)  AnalysisTag(); Long getId(); void setId(Long id); String getTag(); void setTag(String tag); @Generated(hash = 1998124482) List<AnalysisTagName> getNames(); @Generated(hash = 1832659617) synchronized void resetNames(); @Generated(hash = 128553479) void delete(); @Generated(hash = 1942392019) void refresh(); @Generated(hash = 713229351) void update(); Boolean getEnabled(); void setEnabled(Boolean enabled); @Generated(hash = 250411501) void __setDaoSession(DaoSession daoSession);  }
@Test public void getNames_DaoSessionIsNull() { assertThrows(DaoException.class, () -> testAnalysisTag.getNames()); }