@Test
void testPartialGlobMismatch() {

    SamplingRule rule = new SamplingRule()
        .withAttributes(null)
        .withHost("*")
        .withServiceName("*.foo.*")
        .withHTTPMethod("*")
        .withResourceARN("*")
        .withURLPath("/bar/*")
        .withServiceType("AWS::EC2::Instance");
    SamplingRequest req = new SamplingRequest(
        "role-arn",
        "arn:aws:service:us-east-1:111111111111:resource",
        "www.bar.com",
        "192.168.1.1",
        "GET",
        "/foo/baz",
        "AWS::EC2::Instance",
        null
    );
    Matchers m = new Matchers(rule);
    Assertions.assertFalse(m.match(req));
}