/**
* Test that it matches the prefix of a long language code.
*/
public void testMatchesLongLanguagePrefix() {
ValueConstraint constraint = createConstraint("abc-xyz");
assertTrue("Language string did not match",
constraint.satisfied("abc-xyz"));
assertTrue("Language string did not match",
constraint.satisfied("abc-xyz-"));
assertTrue("Language string did not match",
constraint.satisfied("abc-xyz-qrs"));
assertFalse("Language string should not match",
constraint.satisfied("abc-xyzqrs"));
assertFalse("Language string should not match",
constraint.satisfied("abc-x"));
assertFalse("Language string should not match",
constraint.satisfied("abc-"));
assertFalse("Language string should not match",
constraint.satisfied("ab"));
assertFalse("Language string should not match",
constraint.satisfied(""));
}