PhenotypeAssociation extends AbstractAuditable implements gemma.gsec.model.Securable { public Collection<Characteristic> getPhenotypes() { return this.phenotypes; } PhenotypeAssociation(); Characteristic getAssociationType(); void setAssociationType( Characteristic associationType ); GOEvidenceCode getEvidenceCode(); void setEvidenceCode( GOEvidenceCode evidenceCode ); DatabaseEntry getEvidenceSource(); void setEvidenceSource( DatabaseEntry evidenceSource ); ubic.gemma.model.genome.Gene getGene(); void setGene( ubic.gemma.model.genome.Gene gene ); Boolean getIsNegativeEvidence(); void setIsNegativeEvidence( Boolean isNegativeEvidence ); Collection<Characteristic> getPhenotypes(); void setPhenotypes( Collection<Characteristic> phenotypes ); String getScore(); void setScore( String score ); QuantitationType getScoreType(); void setScoreType( QuantitationType scoreType ); Double getStrength(); void setStrength( Double strength ); Collection<PhenotypeAssociationPublication> getPhenotypeAssociationPublications(); void setPhenotypeAssociationPublications(
            Collection<PhenotypeAssociationPublication> phenotypeAssociationPublications ); PhenotypeMappingType getMappingType(); void setMappingType( PhenotypeMappingType mappingType ); String getOriginalPhenotype(); void setOriginalPhenotype( String originalPhenotype ); String getRelationship(); void setRelationship( String relationship ); Date getLastUpdated(); void setLastUpdated( Date lastUpdated );  }
@Test public void testLoadUpdateDeleteEvidence() { Collection<EvidenceValueObject<? extends PhenotypeAssociation>> evidences = this.phenotypeAssociationManagerService .findEvidenceByGeneNCBI( this.geneNCBI ); assertNotNull( evidences ); assertEquals( 1, evidences.size() ); EvidenceValueObject<? extends PhenotypeAssociation> evidence = evidences.iterator().next(); assertEquals( evidence.getGeneNCBI(), litEvidence.getGeneNCBI() ); evidence = this.phenotypeAssociationManagerService.load( evidence.getId() ); assertNotNull( evidence ); assertNotNull( evidence.getPhenotypes() ); assertTrue( !evidence.getPhenotypes().isEmpty() ); String description = "new Description for evidence"; evidence.setDescription( description ); this.phenotypeAssociationManagerService.update( evidence ); evidence = this.phenotypeAssociationManagerService.load( evidence.getId() ); assertEquals( description, evidence.getDescription() ); this.phenotypeAssociationManagerService.remove( evidence.getId() ); assertNull( this.phenotypeAssociationManagerService.load( evidence.getId() ) ); }