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