@Test
@SuppressWarnings("unchecked")
public void testVerbListIdentifiersAll() throws Exception {

  final OaiPmhRepository repo = repo(
          oaiPmhPersistenceMock(searchResultItem("id-1", new Date(), false),
                                searchResultItem("id-2", utcDate(2011, 6, 1), false)), Granularity.DAY);
  runChecks(OaiPmhConstants.VERB_LIST_IDENTIFIERS,
            repo.selectVerb(params("ListIdentifiers", null, "oai_dc", null, null, null)),
            some(IsValid),
            list(hasXPath("//oai20:ListIdentifiers/oai20:header[oai20:identifier='id-1']", NS_CTX),
                 hasXPath("//oai20:ListIdentifiers/oai20:header[oai20:identifier='id-2']", NS_CTX),
                 hasXPath("//oai20:ListIdentifiers/oai20:header[oai20:datestamp='2011-06-01']", NS_CTX),
                 hasXPath("count(//oai20:ListIdentifiers/oai20:header)", NS_CTX, returningANumber(), equalTo(2.0))));
}