@Test
  public void basicTest() {
    BoundedList<String> boundedList = getBoundedListForTest();
    boundedList.add("sampleValue");
    Assert.assertEquals("Names should be the same", boundedList.getName(), "sampleListGauge");
    Assert.assertEquals("List sizes should match", boundedList.getValues().size(), 1);
    Assert.assertEquals("BoundedList should contain sampleGauge", boundedList.getValues().contains("sampleValue"), true);
  }
Class to encapsulate test-cases for {@link BoundedList}
samza-core/src/test/scala/org/apache/samza/metrics/TestBoundedList.java