### Question:
DateConverter implements ValueConverter<Date> { public static DateConverter datePattern( String pattern ) { SimpleDateFormat formatter = new SimpleDateFormat( pattern ); formatter.setLenient( false ); return new DateConverter( formatter ); } DateConverter( DateFormat formatter ); static DateConverter datePattern( String pattern ); Date convert( String value ); Class<Date> valueType(); String valuePattern();  }### Answer:
@Test public void rejectsNullDatePattern() { thrown.expect( NullPointerException.class ); datePattern( null ); }