}
@Test
public void testEqualsConsiderVariantIfSpecified() {
// every language equals itself:
assertTrue(new German().equalsConsiderVariantsIfSpecified(new German()));
assertTrue(new GermanyGerman().equalsConsiderVariantsIfSpecified(new GermanyGerman()));
assertTrue(new English().equalsConsiderVariantsIfSpecified(new English()));
assertTrue(new AmericanEnglish().equalsConsiderVariantsIfSpecified(new AmericanEnglish()));
// equal if variant is the same, but only if specified:
assertTrue(new AmericanEnglish().equalsConsiderVariantsIfSpecified(new English()));
assertTrue(new English().equalsConsiderVariantsIfSpecified(new AmericanEnglish()));
assertFalse(new AmericanEnglish().equalsConsiderVariantsIfSpecified(new BritishEnglish()));
assertFalse(new English().equalsConsiderVariantsIfSpecified(new German()));
}