### Question:
GenGenotypeData extends AbstractRandomAccessGenotypeData implements SampleVariantsProvider { @Override public List<String> getSeqNames() { return new ArrayList<String>(sequenceNames); } GenGenotypeData(String path);  GenGenotypeData(String path, double minimumPosteriorProbabilityToCall);  GenGenotypeData(File genFile, File sampleFile);  GenGenotypeData(File genFile, File sampleFile, double minimumPosteriorProbabilityToCall);  GenGenotypeData(File genFile, File sampleFile, int cacheSize);  GenGenotypeData(File genFile, File sampleFile, int cacheSize, double minimumPosteriorProbabilityToCall);  GenGenotypeData(File genFile, File sampleFile, String forceSeqName);  GenGenotypeData(File genFile, File sampleFile, int cacheSize, String forceSeqName, double minimumPosteriorProbabilityToCall); @Override List<Sequence> getSequences(); @Override List<Sample> getSamples(); @Override Map<String, Annotation> getVariantAnnotationsMap(); @Override Map<String, SampleAnnotation> getSampleAnnotationsMap(); @Override List<Alleles> getSampleVariants(GeneticVariant variant); @Override List<Boolean> getSamplePhasing(GeneticVariant variant); @Override boolean arePhasedProbabilitiesPresent(GeneticVariant variant); @Override int cacheSize(); @Override int getSampleVariantProviderUniqueId(); @Override byte[] getSampleCalledDosage(GeneticVariant variant); @Override float[] getSampleDosage(GeneticVariant variant); @Override void close(); @Override Iterator<GeneticVariant> iterator(); @Override List<String> getSeqNames(); @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 boolean isOnlyContaingSaveProbabilityGenotypes(); @Override float[][] getSampleProbilities(GeneticVariant variant); @Override double[][] getSampleProbabilitiesComplex(GeneticVariant variant); @Override double[][][] getSampleProbabilitiesPhased(GeneticVariant variant); @Override FixedSizeIterable<GenotypeRecord> getSampleGenotypeRecords(GeneticVariant variant);  }### Answer:
@Test public void testGetSeqNames() { List<String> seqNames = genotypeData.getSeqNames(); assertNotNull(seqNames); assertEquals(seqNames.size(), 3); assertEquals(seqNames.get(0), "22"); assertEquals(seqNames.get(1), "23"); assertEquals(seqNames.get(2), "1"); }