### Question:
DayTimeValueConverter { JSONValue number(final Integer value) { return Objects.isNull(value) ? JSONNull.getInstance() : new JSONNumber(value); } @Inject  DayTimeValueConverter(final TranslationService translationService);   }### Answer:
@Test public void testNumber() { final JSONValue actual = converter.number(1); final JSONValue expected = new JSONNumber(1); assertEquals(expected, actual); }
@Test public void testNumberWithNullValues() { final JSONValue actual = converter.number(null); final JSONValue expected = JSONNull.getInstance(); assertEquals(expected, actual); }