Gene implements Comparable<Gene>, Filterable, Inheritable { @JsonIgnore public boolean isXChromosomal() { if (variantEvaluations.isEmpty()) { return false; } Variant ve = variantEvaluations.get(0); return ve.getChromosome() == 23; } Gene(GeneIdentifier geneIdentifier);  Gene(String geneSymbol, int geneId); String getGeneSymbol(); @JsonIgnore String getGeneId(); GeneIdentifier getGeneIdentifier(); @JsonIgnore int getEntrezGeneID(); @JsonIgnore int getNumberOfVariants(); boolean hasVariants(); final void addVariant(VariantEvaluation var); List<VariantEvaluation> getVariantEvaluations(); @JsonIgnore List<VariantEvaluation> getPassedVariantEvaluations(); @Override Set<ModeOfInheritance> getCompatibleInheritanceModes(); @Override void setCompatibleInheritanceModes(Set<ModeOfInheritance> inheritanceModes); @Override boolean isCompatibleWith(ModeOfInheritance modeOfInheritance); @JsonIgnore boolean isCompatibleWithRecessive(); @JsonIgnore boolean isCompatibleWithDominant(); @JsonIgnore boolean isConsistentWithX(); @JsonIgnore boolean isXChromosomal(); @JsonIgnore boolean isYChromosomal(); void addPriorityResult(PriorityResult priorityResult); PriorityResult getPriorityResult(PriorityType type); Map<PriorityType, PriorityResult> getPriorityResults(); synchronized void addGeneScore(GeneScore geneScore); @JsonIgnore GeneScore getTopGeneScore(); List<GeneScore> getGeneScores(); GeneScore getGeneScoreForMode(ModeOfInheritance modeOfInheritance); float getPriorityScore(); float getPriorityScoreForMode(ModeOfInheritance modeOfInheritance); float getVariantScore(); float getVariantScoreForMode(ModeOfInheritance modeOfInheritance); float getCombinedScore(); float getCombinedScoreForMode(ModeOfInheritance modeOfInheritance); @Override boolean passedFilters(); @Override boolean passedFilter(FilterType filterType); @Override boolean addFilterResult(FilterResult filterResult); @Override int hashCode(); @Override boolean equals(Object obj); static Comparator<Gene> comparingScoreForInheritanceMode(ModeOfInheritance modeOfInheritance); @Override int compareTo(Gene otherGene); @Override String toString();  }
@Test public void testIsCompatibleWithXfalseWhenVariantsIsEmpty() { instance = newGeneOne(); assertThat(instance.isXChromosomal(), is(false)); }