Add ChainingPrincipalResolver javadocs and test coverage.