TumorContaminationModel { @VisibleForTesting static int medianDepth(@NotNull final List<TumorContamination> contamination) { return Integers.medianPositiveValue(contamination.stream().map(x -> x.tumor().readDepth()).collect(Collectors.toList())); }  double contamination(@NotNull final List<TumorContamination> unfiltered);  }
@Test public void testMedianReturnsZeroIfListEmpty() { assertEquals(0, TumorContaminationModel.medianDepth(Collections.emptyList())); }