@@ -0,0 +1,422 @@
+package net.wyun.wcrs.wechat;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class MessageUtilTest %7B%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%7D%0A%0A%09@After%0A%09public void tearDown() throws Exception %7B%0A%09%7D%0A%0A%09@Test%0A%09public void test() %7B%0A%09%09String evtKey = %22qrscene_2%22;%0A%09%09int parent = MessageUtil.parseEventKey(evtKey);%0A%09%09assertEquals(2, parent);%0A%09%7D%0A%0A%7D%0A

test to make sure eventkey can be correctly parsed.