### Question:
TimeValueFormatter { public String toDisplay(final String input) { final String timeString = removePrefixAndSuffix(input); return formatTime(timeString); } @Inject  TimeValueFormatter(final TimeZoneProvider timeZoneProvider); String toDisplay(final String input); String buildRawValue(final String time,
                                final String selectedTimeZone); TimeValue getTimeValue(final String val); String toRaw(final String input); String getTime(final String raw); String appendPrefixAndSuffix(final String input);  }### Answer:
@Test public void testToDisplaySimpleTime() { final String input = "time(\"22:30:10\")"; final String expected = "22:30:10"; final String actual = formatter.toDisplay(input); assertEquals(expected, actual); }
@Test public void testToDisplayTimeWithNegativeTimeOffSet() { final String input = "time(\"22:30:10-03:00\")"; final String expected = "22:30:10 UTC -03:00"; final String actual = formatter.toDisplay(input); assertEquals(expected, actual); }
@Test public void testToDisplayTimeWithPositiveTimeOffSet() { final String input = "time(\"22:30:10+03:00\")"; final String expected = "22:30:10 UTC +03:00"; final String actual = formatter.toDisplay(input); assertEquals(expected, actual); }
@Test public void testToDisplayTimeWithUTCTimeOffSet() { final String input = "time(\"22:30:10Z\")"; final String expected = "22:30:10 UTC"; final String actual = formatter.toDisplay(input); assertEquals(expected, actual); }
@Test public void testToDisplayTimeWithTimeZone1() { final String input = "time(\"22:30:10@America/Sao_Paulo\")"; final String expected = "22:30:10 America/Sao_Paulo"; final String actual = formatter.toDisplay(input); assertEquals(expected, actual); }
@Test public void testToDisplayTimeWithTimeZoneWithDash() { final String input = "time(\"22:30:10@Etc/GMT-0\")"; final String expected = "22:30:10 Etc/GMT-0"; final String actual = formatter.toDisplay(input); assertEquals(expected, actual); }