@Test
public void testValidateConstraint() {

  // At the moment we only disallow multiple source tags to be associated with
  // a constraint. TODO: More tests to be added for YARN-6621.
  Assert.assertTrue(pcm.validateConstraint(sourceTag1, c1));
  Assert.assertFalse(pcm.validateConstraint(sourceTag4, c1));
}