@Test
public void testContainsArguments() {

  Assert.assertFalse(PropertyHelper.containsArguments("foo"));
  Assert.assertFalse(PropertyHelper.containsArguments("foo/bar"));
  Assert.assertFalse(PropertyHelper.containsArguments("foo/bar/baz"));
  Assert.assertTrue(PropertyHelper.containsArguments("foo/bar/$1/baz"));
  Assert.assertTrue(PropertyHelper.containsArguments("foo/bar/$1/baz/$2"));
  Assert.assertTrue(PropertyHelper.containsArguments("$1/foo/bar/$2/baz"));
  Assert.assertTrue(PropertyHelper.containsArguments("$1/foo/bar/$2/baz/$3"));
  Assert.assertTrue(PropertyHelper.containsArguments("metrics/yarn/Queue/$1.replaceAll(\",q(\\d+)=\",\"/\").substring(1)"));
  Assert.assertFalse(PropertyHelper.containsArguments("$X/foo/bar/$Y/baz/$Z"));
}