@Test
public void testConvertNitfDateWithNullZonedTime() {

  // setup
  DateTime mockDateTime = mock(DateTime.class);
  doReturn(null).when(mockDateTime).getZonedDateTime();
  // when
  Date convertedDate = NitfAttributeConverters.nitfDate(mockDateTime);
  // then
  assertThat(convertedDate, is(nullValue()));
}