TIKA-1270 Prep for new endpoints - refactor server unit tests to reduce duplication

git-svn-id: https://svn.apache.org/repos/asf/tika/trunk@1586761 13f79535-47bb-0310-9956-ffa450edef68