@Test
public void testGetValue() {

    final DatePickerSingletonDOMElementFactory factory = spy(makeFactory());
    final Date date = mock(Date.class);
    final Date convertedDate = mock(Date.class);
    doReturn(datePicker).when(factory).getWidget();
    when(datePicker.getValue()).thenReturn(date);
    mockStatic(TimeZoneUtils.class);
    PowerMockito.when(TimeZoneUtils.convertToServerTimeZone(date)).thenReturn(convertedDate);
    final Date actualDate = factory.getValue();
    assertEquals(convertedDate, actualDate);
}