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