### Question:
MultiPartGenotypeData extends AbstractRandomAccessGenotypeData { @Override public Map<String, SampleAnnotation> getSampleAnnotationsMap() { return sampleAnnotationsMap; } MultiPartGenotypeData(Collection<RandomAccessGenotypeData> genotypeDataCollection);  MultiPartGenotypeData(RandomAccessGenotypeData... genotypeDataCollection);  MultiPartGenotypeData(Set<RandomAccessGenotypeData> genotypeDataCollection); static MultiPartGenotypeData createFromVcfFolder(File vcfFolder, int cacheSize, double minimumPosteriorProbabilityToCall); static MultiPartGenotypeData createFromGenFolder(File genFolder, int cacheSize, double minimumPosteriorProbabilityToCall); @Override List<String> getSeqNames(); @Override Iterable<Sequence> getSequences(); @Override Sequence getSequenceByName(String name); @Override Iterable<GeneticVariant> getVariantsByPos(String seqName, int startPos); @Override GeneticVariant getSnpVariantByPos(String seqName, int startPos); @Override List<Sample> getSamples(); @Override Iterator<GeneticVariant> iterator(); @Override Iterable<GeneticVariant> getSequenceGeneticVariants(String seqName); @Override Iterable<GeneticVariant> getVariantsByRange(String seqName, int rangeStart, int rangeEnd); @Override void close(); @Override Map<String, Annotation> getVariantAnnotationsMap(); @Override Map<String, SampleAnnotation> getSampleAnnotationsMap(); @Override boolean isOnlyContaingSaveProbabilityGenotypes();  }### Answer:
@Test public void testGetSampleAnnotationsMap() { assertEquals(chr1SampleAnnotated.getSampleAnnotationsMap(), expectedSampleAnnotationMap); assertEquals(chr2SampleAnnotated.getSampleAnnotationsMap(), expectedSampleAnnotationMap); assertEquals(multiPartSampleAnnotated.getSampleAnnotationsMap(), expectedSampleAnnotationMap); }