@Test
public void testValidateRegistrationDateRangeFilterStartDateIsGreaterThenEndDate() throws DatatypeConfigurationException
{

    XMLGregorianCalendar end = DatatypeFactory.newInstance().newXMLGregorianCalendar("2018-04-01");
    XMLGregorianCalendar start = DatatypeFactory.newInstance().newXMLGregorianCalendar("2018-04-02");
    try
    {
        businessObjectDataHelper.validateRegistrationDateRangeFilter(new RegistrationDateRangeFilter(start, end));
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals(String.format("The start registration date \"%s\" cannot be greater than the end registration date \"%s\".", start, end),
            e.getMessage());
    }
}