ConfigValueHelper { protected static void checkNormalWithComma(String configKey, String configValue) throws SofaRpcRuntimeException { checkPattern(configKey, configValue, NORMAL_COMMA, "only allow a-zA-Z0-9 '-' '_' '.' ','"); }    }
@Test public void checkNormalWithComma() { ConfigValueHelper.checkNormalWithComma("aaa", "123abc-_.,"); try { ConfigValueHelper.checkNormalWithComma("aaa", "123abc-_.,!"); Assert.fail(); } catch (Exception e) { Assert.assertTrue(e.getMessage().contains("aaa")); } }