@Test
public void testValidateCompName() {

  String[] invalidNames = {
      "EXAMPLE", // UPPER case not allowed
      "example_app" // underscore not allowed.
  };
  for (String name : invalidNames) {
    try {
      ServiceApiUtil.validateNameFormat(name, new Configuration());
      Assert.fail();
    } catch (IllegalArgumentException ex) {
      ex.printStackTrace();
    }
  }
}