ReporterParameterParser { static void checkParameters(Set<String> parameters) { Objects.requireNonNull(parameters, "Parameters must not be null"); if (parameters.isEmpty()) { LOGGER.error("No parameters provided for the reporter reporter."); LOGGER.info(InfoRequestFactory.helpMessage()); throw new IllegalArgumentException("No parameters provided for the reporter reporter."); } } private  ReporterParameterParser();   }
@Test(expected = NullPointerException.class) public void checkParametersNullParameters() { ReporterParameterParser.checkParameters(null); }
@Test(expected = IllegalArgumentException.class) public void checkParametersEmptyParameters() { ReporterParameterParser.checkParameters( Collections.emptySet()); }