private static void waitForAcks(AsyncSession session, int n, List<Response> responsesOut) throws InterruptedException {
        for (int i = 0; i < n; ++i) {
            Response response;
            if (i % 2 == 0) {
                response = pollNext(session);
            } else {
                response = session.getNext(60000);
            }
            responsesOut.add(response);
        }
    }
These tests should work with all implementations (who choose to implement these features) To test a certain
implementation subclass this test and make the subclass setup assign the implementation class to the
<code>access</code> member variable (make sure it also calls super.setUp()). Override tests of nonsupported features
to do nothing.

@author bratseth
documentapi/src/test/java/com/yahoo/documentapi/test/AbstractDocumentApiTestCase.java