### Question:
Domain { public abstract ObservableList<? extends Entity> getCategoryContents(EntityCategory node);  abstract List<EntityCategory> getCategories(); abstract ObservableList<? extends Entity> getCategoryContents(EntityCategory node); abstract EntityCategory getCategory(Entity entity); abstract EntityCategory getCategory(Class<? extends Entity> entityClass); abstract SortedSetModel<Drug> getDrugs(); abstract ObservableList<TreatmentCategorization> getTreatmentCategorizations(); abstract SortedSetModel<Indication> getIndications(); abstract SortedSetModel<Endpoint> getEndpoints(); abstract SortedSetModel<AdverseEvent> getAdverseEvents(); abstract SortedSetModel<PopulationCharacteristic> getPopulationCharacteristics(); abstract SortedSetModel<Study> getStudies(); abstract ObservableList<TreatmentCategorization> getCategorizations(final Drug drug); abstract SortedSetModel<MetaAnalysis> getMetaAnalyses(); abstract SortedSetModel<BenefitRiskAnalysis<?>> getBenefitRiskAnalyses(); abstract SortedSetModel<Unit> getUnits(); abstract void deleteEntity(Entity entity); abstract boolean hasDependents(Entity entity); abstract ObservableList<MetaAnalysis> getPairWiseMetaAnalyses(); abstract ObservableList<MetaAnalysis> getNetworkMetaAnalyses(); abstract ObservableList<Study> getStudies(Variable e); abstract ObservableList<Study> getStudies(Drug d); abstract ObservableList<Study> getStudies(Indication i); static final Unit GRAM; static final Unit LITER; }### Answer:
@Test public void testGetCategoryContents() { assertEquals(d_domain.getIndications(), d_domain.getCategoryContents( d_domain.getCategory(Indication.class))); assertEquals(d_domain.getDrugs(), d_domain.getCategoryContents( d_domain.getCategory(Drug.class))); assertEquals(d_domain.getEndpoints(), d_domain.getCategoryContents( d_domain.getCategory(Endpoint.class))); assertEquals(d_domain.getAdverseEvents(), d_domain.getCategoryContents( d_domain.getCategory(AdverseEvent.class))); assertEquals(d_domain.getPopulationCharacteristics(), d_domain.getCategoryContents( d_domain.getCategory(PopulationCharacteristic.class))); assertEquals(d_domain.getStudies(), d_domain.getCategoryContents( d_domain.getCategory(Study.class))); assertEquals(d_domain.getPairWiseMetaAnalyses(), d_domain.getCategoryContents( d_domain.getCategory(PairWiseMetaAnalysis.class))); assertEquals(d_domain.getBenefitRiskAnalyses(), d_domain.getCategoryContents( d_domain.getCategory(BenefitRiskAnalysis.class))); }