@Test
public void testWithDimensionsOnSomeStats() throws Exception {

    Stat s1 = new Stat("counts", 20);
    s1.addTag("stage", "prod");
    s1.addTag("region", "us-east-1");
    Stat s2 = new Stat("errors", 2);
    List<Stat> stats = Arrays.asList(s1, s2);
    String actualJson = CloudWatchEmbeddedMetricsReporter.getCloudWatchEmbeddedMetricsJson("nextdoor",
            timestamp,
            Collections.emptyMap(),
            stats,
            gson);
    String expectedJson = IOUtils.toString(
            new InputStreamReader(this.getClass().getResourceAsStream("metrics_with_stats_varying_dimensions.json"), "UTF-8"));
    assertEquals(expectedJson, actualJson);
}