### Question:
DateConverter implements AttributeConverter<Date,String> { @Override public Date convertToEntityAttribute(String dbData) { if(dbData==null) { return null; } return new Date(Long.parseLong(dbData)); }  @Override String convertToDatabaseColumn(Date attribute); @Override Date convertToEntityAttribute(String dbData);  }### Answer:
@Test public void testConvertToEntityAttribute() throws Exception { DateConverter sut=new DateConverter(); assertThat(sut.convertToEntityAttribute(null),nullValue()); }