@Test
public void testVerbListIdentifiersDateRangeError() throws Exception {

  runChecks(OaiPmhConstants.VERB_LIST_IDENTIFIERS,
            repo(null, Granularity.DAY)
                    .selectVerb(params("ListIdentifiers", null, "oai_dc", "2011-01-02", "2011-01-01", null)),
            some(IsError),
            list(hasXPath("//oai20:error[@code='badArgument']", NS_CTX)));
  runChecks(OaiPmhConstants.VERB_LIST_IDENTIFIERS,
            repo(null, Granularity.SECOND)
                    .selectVerb(params("ListIdentifiers", null, "oai_dc", "2011-01-01T10:20:10Z", "2011-01-01T10:20:00Z", null)),
            some(IsError),
            list(hasXPath("//oai20:error[@code='badArgument']", NS_CTX)));
}