private void assertRequestIDSequential(
            final Node node, final Node previous) {
        String ridStr = node.getBody().getAttribute(Attributes.RID);
        assertNotNull("Request ID attribute not present", ridStr);

        long rid = Long.parseLong(ridStr);
        if (previous != null) {
            String prevRidStr = previous.getBody().getAttribute(Attributes.RID);
            assertNotNull("Previous request ID attribute not present",
                    prevRidStr);
            long prevRid = Long.parseLong(prevRidStr);
            assertEquals("Request ID is not sequential", prevRid + 1, rid);
        }
    }