Pedigree { public static Pedigree justProband(String id) { Individual individual = Individual.builder().id(id).status(Individual.Status.AFFECTED).build(); return Pedigree.of(individual); } private  Pedigree(Collection<Individual> individuals); static Pedigree of(Collection<Individual> individuals); static Pedigree of(Individual... individuals); static Pedigree justProband(String id); static Pedigree empty(); @JsonIgnore boolean containsId(String id); @JsonIgnore Individual getIndividualById(String individualId); Set<Individual> getIndividuals(); @JsonIgnore Set<String> getIdentifiers(); @JsonIgnore int size(); @JsonIgnore boolean isEmpty(); @JsonIgnore int numFamilies(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testJustProband() { Pedigree instance = Pedigree.justProband("proband"); Individual expectedProband = Individual.builder().id("proband").sex(Sex.UNKNOWN).status(Status.AFFECTED).build(); assertThat(instance.getIndividuals(), equalTo(ImmutableSet.of(expectedProband))); }