### Question:
PedMapGenotypeData extends AbstractRandomAccessGenotypeData implements SampleVariantsProvider { @Override public List<Sample> getSamples() { return samples; } PedMapGenotypeData(String basePath);  PedMapGenotypeData(File pedFile, File mapFile); @Override List<Sequence> getSequences(); @Override List<Sample> getSamples(); @Override List<Alleles> getSampleVariants(GeneticVariant variant); @Override Map<String, Annotation> getVariantAnnotationsMap(); @Override List<String> getSeqNames(); @Override Iterable<GeneticVariant> getVariantsByPos(String seqName, int startPos); @Override Iterator<GeneticVariant> iterator(); @Override Iterable<GeneticVariant> getSequenceGeneticVariants(String seqName); @Override int cacheSize(); @Override List<Boolean> getSamplePhasing(GeneticVariant variant); @Override boolean arePhasedProbabilitiesPresent(GeneticVariant variant); @Override int getSampleVariantProviderUniqueId(); @Override Map<String, SampleAnnotation> getSampleAnnotationsMap(); @Override Iterable<GeneticVariant> getVariantsByRange(String seqName, int rangeStart, int rangeEnd); @Override byte[] getSampleCalledDosage(GeneticVariant variant); @Override float[] getSampleDosage(GeneticVariant variant); @Override void close(); @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 testGetSamples() { List<Sample> samples = genotypeData.getSamples(); assertNotNull(samples); assertEquals(samples.size(), 9); assertEquals(samples.get(0).getId(), "1042"); assertEquals(samples.get(0).getFamilyId(), "F1042"); }