LUCENE-5207: check the class too

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523301 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-5207: fix oops in test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523302 13f79535-47bb-0310-9956-ffa450edef68