ReportEntryFactory { public static ReportEntry createCounterReportEntry(String key, long count) { return new ReportEntry(key, ReportEntryType.COUNTER, String.valueOf(count)); } private  ReportEntryFactory(); static ReportEntry createCounterReportEntry(String key, long count); static ReportEntry createDurationReportEntry(String key, long duration);  }
@Test public void createCounterReportParam() { ReportEntry reportEntry = ReportEntryFactory.createCounterReportEntry("report.key", 43); assertEquals("report.key", reportEntry.getKey()); assertEquals(ReportEntryType.COUNTER, reportEntry.getType()); assertEquals("43", reportEntry.getValue()); }