Cache test and MarkLogic Java API investigation