ReporterOutputFactory { static ReporterOutput getReporterOutput(String outputFormat) { if (outputFormat.equalsIgnoreCase("csv")) { return new ReporterOutputCSV(); } return DEFAULT_REPORTER_OUTPUT; } private  ReporterOutputFactory();   }
@Test public void defaultStringEqualsDefaultTest() { final ReporterOutput reporterOutput = ReporterOutputFactory.getReporterOutput(""); assertThat(reporterOutput).isEqualTo(ReporterOutputFactory.DEFAULT_REPORTER_OUTPUT); }