### Question:
DateCheckpointType implements CheckpointType { @Override public Object parseFilter(Object o, Map<String, String> context) throws ParseException { return new SimpleDateFormat(getDatePattern(context)).parse((String) o); }  @Override String buildFilter(Object fieldValue, Map<String, String> context); @Override String buildDefaultFilter(Map<String, String> context); @Override Boolean isValidCurrentCheckpoint(Object currentCheckpoint, Map<String, String> context); @Override Object parseFilter(Object o, Map<String, String> context);  }### Answer:
@Test(expected = ParseException.class) public void testParseFilter() throws Exception { Object filter = dateCheckpointType.parseFilter(objString, context); }