// Add a few profiles
profileSet1.addProfile("profile1");
profileSet1.addProfile("profile2");
profileSet2.addProfile("profile2");
profileSet2.addProfile("accept:application/xhtml+xml");
// Match against exact device name
expression = new ProfileTargetingExpression("device1");
assertTrue(expression.isMatch(profileSet1));
assertTrue(!expression.isMatch(profileSet2));