Make sure principal has hashCode/equals methods