@Test
public void testCreatePedigreeWithMoreThanOneFamilyInFile() {

    Pedigree multiFamilyPed = Pedigree.of(
            Individual.builder()
                    .familyId("Adams")
                    .id("Adam")
                    .sex(Individual.Sex.MALE)
                    .status(Individual.Status.UNAFFECTED)
                    .build(),
            Individual.builder()
                    .familyId("Simpsons")
                    .id("Homer")
                    .sex(Individual.Sex.MALE)
                    .status(Individual.Status.UNAFFECTED)
                    .build()
    );
    assertThrows(RuntimeException.class, () ->
            PedigreeSampleValidator.validate(multiFamilyPed, SampleIdentifier.of("Homer", 1), ImmutableList.of("Adam", "Homer"))
    );
}