class CalendarWeekDayFormatter implements WeekDayFormatter {

  @Override public CharSequence format(final DayOfWeek dayOfWeek) {
    return dayOfWeek.getDisplayName(TextStyle.SHORT, Locale.getDefault());
  }

}

class CalendarWeekDayFormatterTest {

  public CalendarWeekDayFormatter formatter;
  public Locale defaultLocaleOriginal;

  @Test public void testFormattedDayOfWeek_Tuesday() {

    assertThat(formatter.format(DayOfWeek.TUESDAY).toString(), is("Tue"));
  }

}