@@ -0,0 +1,1041 @@
+package cn.momia.common.util;%0A%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.Test;%0A%0Apublic class MobileUtilTest %7B%0A    @Test%0A    public void testValidation() %7B%0A        String mobile1 = null;%0A        String mobile2 = %22%22;%0A        String mobile3 = %2212345678910%22;%0A        String mobile4 = %2212345x78910%22;%0A        String mobile5 = %2222345678910%22;%0A        String mobile6 = %22x2345678910%22;%0A        String mobile7 = %2222345x78910%22;%0A%0A        Assert.assertTrue(MobileUtil.isInvalid(mobile1));%0A        Assert.assertTrue(MobileUtil.isInvalid(mobile2));%0A        Assert.assertFalse(MobileUtil.isInvalid(mobile3));%0A        Assert.assertTrue(MobileUtil.isInvalid(mobile4));%0A        Assert.assertTrue(MobileUtil.isInvalid(mobile5));%0A        Assert.assertTrue(MobileUtil.isInvalid(mobile6));%0A        Assert.assertTrue(MobileUtil.isInvalid(mobile7));%0A    %7D%0A%0A    @Test%0A    public void testEncrypt() %7B%0A        Assert.assertEquals(MobileUtil.encrypt(%2222345678910%22), %22%22);%0A        Assert.assertEquals(MobileUtil.encrypt(%2212345678910%22), %22123****8910%22);%0A    %7D%0A%7D%0A

add MobileUtil Test