SampleGenotype { @JsonIgnore public boolean isPhased() { return phased; } private  SampleGenotype(boolean phased, AlleleCall... alleleCalls); static SampleGenotype empty(); static SampleGenotype noCall(); static SampleGenotype het(); static SampleGenotype homRef(); static SampleGenotype homAlt(); static SampleGenotype of(AlleleCall... alleleCalls); static SampleGenotype phased(AlleleCall... alleleCalls); List<AlleleCall> getCalls(); @JsonIgnore boolean isHet(); @JsonIgnore boolean isHomRef(); @JsonIgnore boolean isHomAlt(); @JsonIgnore boolean isPhased(); @JsonIgnore boolean isEmpty(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test void testIsPhased() { assertThat(SampleGenotype.of(AlleleCall.REF, AlleleCall.ALT).isPhased(), is(false)); assertThat(SampleGenotype.phased(AlleleCall.REF, AlleleCall.ALT).isPhased(), is(true)); }