VcfSample { public static Builder builder() { return new Builder(); } VcfSample(final String id, final VcfGenome... genomes); String getId(); VcfGenome[] getGenomes(); static Builder builder();  }
@Test public void testBuilder() { VcfSample sample = VcfSample.builder().withId("id").withGenome(new VcfGenome("genomeId", 1.0d, "Description")).build(); assertNotNull(sample); assertEquals("id", sample.getId()); assertNotNull(sample.getGenomes()); assertEquals(1, sample.getGenomes().length); VcfGenome genome = sample.getGenomes()[0]; assertEquals("genomeId", genome.getId()); assertEquals(1.0d, genome.getMixture(), 0.1d); assertEquals("Description", genome.getDescription()); }