@Test
public void testMemoryUsageSampler() throws InterruptedException, IOException {

  System.setProperty("perf.memory.sampleAggMillis", "1000");
  assertSamplerBehavior();
  assertSamplerBehavior();
}