@Test
void testPutRules() {

    Instant now = Instant.ofEpochSecond(1500000000);
    CentralizedManifest manifest = new CentralizedManifest();
    // Liberal sampling rule
    SamplingRule r1 = new SamplingRule()
        .withRuleName("r1")
        .withPriority(10)
        .withReservoirSize(20)
        .withFixedRate(0.05)
        .withHost("*")
        .withServiceName("*")
        .withHTTPMethod("*")
        .withURLPath("*")
        .withResourceARN("*")
        .withServiceType("*");
    manifest.putRules(Arrays.asList(r1), now);
    SamplingRequest req = new SamplingRequest(
        "privileged",
        "resourceARN",
        "service",
        "host",
        "method",
        "url",
        "serviceType",
        null
    );
    Assertions.assertEquals("r1", manifest.match(req, now).sample(now).getRuleName().get());
}