@Test
void testPutRulesWithoutRebuild() {

    CentralizedManifest manifest = new CentralizedManifest();
    manifest.putRules(Arrays.asList(rule("r1")), Instant.now());
    Map<String, CentralizedRule> rules1 = Whitebox.getInternalState(manifest, "rules", CentralizedManifest.class);
    SamplingRule r = rule("r1").withResourceARN("arn3");
    manifest.putRules(Arrays.asList(r), Instant.now());
    Map<String, CentralizedRule> rules2 = Whitebox.getInternalState(manifest, "rules", CentralizedManifest.class);
    // The map of rules should not have been rebuilt
    Assertions.assertTrue(rules1 == rules2);
}