@Test public void shouldNotThrowErrorOnValidateForAPeriodWithNoEndDate() { ProcessingPeriod processingPeriod = make(a(defaultProcessingPeriod)); processingPeriod.setEndDate(null); exException.expect(dataExceptionMatcher("error.period.without.end.date")); processingPeriod.validate(); }