### Question:
TriTyperGenotypeData extends AbstractRandomAccessGenotypeData implements SampleVariantsProvider { @Override public List<Boolean> getSamplePhasing(GeneticVariant variant) { return samplePhasing; } TriTyperGenotypeData(String location);  TriTyperGenotypeData(String location, int cacheSize);  TriTyperGenotypeData(String location, int cacheSize, VariantFilter variantFilter);  TriTyperGenotypeData(String location, int cacheSize, VariantFilter variantFilter, boolean readOnlyIncludedIndividuals);  TriTyperGenotypeData(File location);  TriTyperGenotypeData(File location, int cacheSize, VariantFilter variantFilter, boolean readOnlyIncludedIndividuals);  TriTyperGenotypeData(File location, int cacheSize, VariantFilter variantFilter, SampleFilter sampleFilter);  TriTyperGenotypeData(File genotypeDataFile, File imputedDosageDataFile, File snpFile, File snpMapFile, File individualFile, File phenotypeAnnotationFile, int cacheSize, VariantFilter variantFilter, SampleFilter sampleFilter, File allelRecoding); @Override GeneticVariant getSnpVariantByPos(String seqName, int startPos); @Override boolean isOnlyContaingSaveProbabilityGenotypes(); @Override float[][] getSampleProbilities(GeneticVariant variant); @Override double[][] getSampleProbabilitiesComplex(GeneticVariant variant); @Override double[][][] getSampleProbabilitiesPhased(GeneticVariant variant); @Override List<Alleles> getSampleVariants(GeneticVariant variant); @Override float[] getSampleDosage(GeneticVariant variant); @Override byte[] getSampleCalledDosage(GeneticVariant variant); @Override List<Sample> getSamples(); @Override List<Boolean> getSamplePhasing(GeneticVariant variant); @Override boolean arePhasedProbabilitiesPresent(GeneticVariant variant); @Override int cacheSize(); @Override void close(); @Override int getSampleVariantProviderUniqueId(); @Override Map<String, SampleAnnotation> getSampleAnnotationsMap(); @Override Map<String, Annotation> getVariantAnnotationsMap(); @Override List<String> getSeqNames(); @Override Iterable<Sequence> getSequences(); @Override Iterable<GeneticVariant> getVariantsByPos(String seqName, int startPos); @Override Iterable<GeneticVariant> getSequenceGeneticVariants(String seqName); @Override Iterable<GeneticVariant> getVariantsByRange(String seqName, int rangeStart, int rangeEnd); @Override Iterator<GeneticVariant> iterator(); @Override FixedSizeIterable<GenotypeRecord> getSampleGenotypeRecords(GeneticVariant variant);  }### Answer:
@Test public void testGetSamplePhasing() { Iterable <GeneticVariant> variants = genotypeData.getVariantsByPos("22", 14431347); List<Boolean> phasing = genotypeData.getSamplePhasing(variants.iterator().next()); assertEquals(phasing, Arrays.asList(false, false, false, false, false, false, false, false, false)); }