PurpleQC { public abstract double contamination();  Set<PurpleQCStatus> status(); abstract FittedPurityMethod method(); boolean pass(); abstract int copyNumberSegments(); abstract int unsupportedCopyNumberSegments(); abstract int deletedGenes(); abstract double purity(); abstract double contamination(); @NotNull abstract Gender cobaltGender(); @NotNull abstract Gender amberGender(); @NotNull abstract Set<GermlineAberration> germlineAberrations(); @Override String toString();  }
@Test public void testContamination() { assertStatus(builder().contamination(PurpleQC.MAX_CONTAMINATION), PurpleQCStatus.PASS); assertStatus(builder().contamination(PurpleQC.MAX_CONTAMINATION + 0.01), PurpleQCStatus.FAIL_CONTAMINATION); }