@Test
public void testEmptyPage() throws IOException, SAXException {

    SimpleArchivedMessages archivedMessages = new SimpleArchivedMessages(Collections.emptyList(), 0L, 50L);
    MatchingArchivedMessageResults tested = new MatchingArchivedMessageResults(INITIATING_ENTITY, ARCHIVE_ID, query,
            archivedMessages);
    List<Stanza> responseStanzas = tested.toStanzas();
    assertEquals(1, responseStanzas.size());
    StanzaAssert.assertEquals(
            StanzaBuilder.createClone(XMLParserUtil
                    .parseRequiredDocument("<iq type='result' id='juliet1'><fin xmlns='urn:xmpp:mam:2'>"
                            + "    <set xmlns='http://jabber.org/protocol/rsm'>"
                            + "      <count>50</count></set></fin></iq>"),
                    true, null).build(),
            responseStanzas.get(0));
}