extracting policy from a document; onto JRuby testing