public void testGetCollationKey() {
RuleBasedCollator coll = (RuleBasedCollator) Collator
.getInstance(Locale.GERMAN);
String source = "abc";
CollationKey key1 = coll.getCollationKey(source);
assertEquals(source, key1.getSourceString());
String source2 = "abb";
CollationKey key2 = coll.getCollationKey(source2);
assertEquals(source2, key2.getSourceString());
assertTrue(key1.compareTo(key2) > 0);
assertTrue(coll.compare(source, source2) > 0);
}