	@Test
	public void testItemWithStartAndEndRegex() {

		List<String> allowList = Lists.newArrayList();
		allowList.add("*pcs*");
		AllowListMetricFilter filter = new AllowListMetricFilter(allowList);
		Assert.assertTrue(filter.isAllowed(metric("some.pcs.metric")));
		Assert.assertTrue(filter.isAllowed(metric("pcs.metric")));
		Assert.assertTrue(filter.isAllowed(metric("metric.pcs")));
		Assert.assertFalse(filter.isAllowed(metric("other.metric")));
	}