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

  runChecks(OaiPmhConstants.VERB_GET_RECORD,
            repo(oaiPmhPersistenceMock(searchResultItem("id-1", utcDate(2011, 6, 1), false)),
                 Granularity.DAY)
                    .selectVerb(params("GetRecord", "id-1", "oai_dc", null, null, null)),
            Option.<OaiPmhResponseStatus>none(),
            list(hasXPath("//oai20:GetRecord/oai20:record/oai20:header[oai20:identifier='id-1']", NS_CTX),
                 hasXPath("//oai20:GetRecord/oai20:record/oai20:header[oai20:datestamp='2011-06-01']", NS_CTX),
                 hasXPath("//oai20:GetRecord/oai20:record/oai20:header[not(@status='deleted')]", NS_CTX),
                 hasXPath("count(//oai20:GetRecord/oai20:record)", NS_CTX, returningANumber(), equalTo(1.0)),
                 hasXPath("count(//oai20:GetRecord/oai20:record/oai20:metadata)", NS_CTX, returningANumber(), equalTo(1.0))));
}