GermlineReportingModel { public boolean notifyAboutGene(@NotNull String germlineGene) { Boolean notify = germlineGenesAndNotificationMap.get(germlineGene); if (notify == null) { LOGGER.warn("Requested notification status for a gene that is not amongst set of reportable germline genes: {}", germlineGene); } return notify != null ? notify : false; } GermlineReportingModel(@NotNull final Map<String, Boolean> germlineGenesAndNotificationMap); boolean notifyAboutGene(@NotNull String germlineGene);  }
@Test public void returnFalseWhenGeneIsNotKnown() { GermlineReportingModel empty = new GermlineReportingModel(Maps.newHashMap()); assertFalse(empty.notifyAboutGene("DoesNotExist")); }