public void testMatchQuestionBeginningEnd() throws Exception
{
new QueryTEST(
new MBean[]
{
new MBean(new StringTest("Hello"), "Domain1:type=instance1"),
new MBean(new StringTest("HellO"), "Domain1:type=instance2"),
new MBean(new StringTest("hello"), "Domain1:type=instance3"),
new MBean(new StringTest("hellO"), "Domain1:type=instance4"),
new MBean(new StringTest(" ell "), "Domain1:type=instance5")
},
new MBean[]
{
new MBean(new StringTest("hell"), "Domain2:type=instance1"),
new MBean(new StringTest("helL"), "Domain2:type=instance2"),
new MBean(new StringTest("ello"), "Domain2:type=instance3"),
new MBean(new StringTest("Ello"), "Domain2:type=instance4"),
new MBean(new StringTest("ell"), "Domain2:type=instance5"),
new MBean(new StringTest("Helloo"), "Domain2:type=instance6"),
new MBean(new StringTest("HHello"), "Domain2:type=instance7"),
new MBean(new StringTest("HHelloo"), "Domain2:type=instance8"),
},
Query.match(Query.attr("String"), Query.value("?ell?"))
).test();
}