entitlement: fix repair tests with jdk7

The behavior of TreeMap has changed, see comment.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>