NOTE: The tests use String literals to ensure the comparisons are not performed on object references. author: Adrian Brock.