@Test
public void testWithNoDimensionsAndStats() throws Exception {

    List<Stat> stats = Arrays.asList(new Stat("counts", 20),
            new Stat("errors", 2));
    String actualJson = CloudWatchEmbeddedMetricsReporter.getCloudWatchEmbeddedMetricsJson("nextdoor",
            timestamp,
            Collections.emptyMap(),
            stats,
            gson);
    String expectedJson = IOUtils.toString(
            new InputStreamReader(this.getClass().getResourceAsStream("metrics_with_stats_no_dimensions.json"), "UTF-8"));
    assertEquals(expectedJson, actualJson);
}