private static Response pollNext(AsyncSession session) throws InterruptedException {
        for (int i = 0; i < 600; ++i) {
            Response response = session.getNext();
            if (response != null) {
                return response;
            }
            Thread.sleep(100);
        }
        return null;
    }
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