@Test
void testSimpleMatch() {

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