### Question:
TimeZoneUtils { public static Date convertFromServerTimeZone(final Date date) { return FORMATTER.parse(formatWithServerTimeZone(date)); }  static Date convertFromServerTimeZone(final Date date); static Date convertToServerTimeZone(final Date date); static String formatWithServerTimeZone(final Date date); static TimeZone getTimeZone(); static DateTimeFormat internalFormatter(); final static DateTimeFormat FORMATTER; }### Answer:
@Test @PrepareForTest({TimeZoneUtils.class, DateTimeFormat.class}) public void testConvertFromServerTimeZone() { final Date date = mock(Date.class); final Date expectedDate = mock(Date.class); final String parsedDate = "01-01-1900"; mockStatic(TimeZoneUtils.class); when(TimeZoneUtils.formatWithServerTimeZone(date)).thenReturn(parsedDate); when(TimeZoneUtils.convertFromServerTimeZone(any(Date.class))).thenCallRealMethod(); when(dateTimeFormat.parse(parsedDate)).thenReturn(expectedDate); final Date actualDate = TimeZoneUtils.convertFromServerTimeZone(date); assertEquals(expectedDate, actualDate); }