public boolean match(String pattern, String path) {
		return doMatch(pattern, path, true, null);
	}
@Test
	public void matchesTest4() {
		AntPathMatcher pathMatcher = new AntPathMatcher();

		// 精确匹配
		assertTrue(pathMatcher.match("/test", "/test"));
		assertFalse(pathMatcher.match("test", "/test"));

		//测试通配符?
		assertTrue(pathMatcher.match("t?st", "test"));
		assertTrue(pathMatcher.match("te??", "test"));
		assertFalse(pathMatcher.match("tes?", "tes"));
		assertFalse(pathMatcher.match("tes?", "testt"));

		//测试通配符*
		assertTrue(pathMatcher.match("*", "test"));
		assertTrue(pathMatcher.match("test*", "test"));
		assertTrue(pathMatcher.match("test/*", "test/Test"));
		assertTrue(pathMatcher.match("*.*", "test."));
		assertTrue(pathMatcher.match("*.*", "test.test.test"));
		assertFalse(pathMatcher.match("test*", "test/")); //注意这里是false 因为路径不能用*匹配
		assertFalse(pathMatcher.match("test*", "test/t")); //这同理
		assertFalse(pathMatcher.match("test*aaa", "testblaaab")); //这个是false 因为最后一个b无法匹配了 前面都是能匹配成功的

		//测试通配符** 匹配多级URL
		assertTrue(pathMatcher.match("/*/**", "/testing/testing"));
		assertTrue(pathMatcher.match("/**/*", "/testing/testing"));
		assertTrue(pathMatcher.match("/bla/**/bla", "/bla/testing/testing/bla/bla")); //这里也是true哦
		assertFalse(pathMatcher.match("/bla*bla/test", "/blaXXXbl/test"));

		assertFalse(pathMatcher.match("/????", "/bala/bla"));
		assertFalse(pathMatcher.match("/**/*bla", "/bla/bla/bla/bbb"));

		assertTrue(pathMatcher.match("/*bla*/**/bla/**", "/XXXblaXXXX/testing/testing/bla/testing/testing/"));
		assertTrue(pathMatcher.match("/*bla*/**/bla/*", "/XXXblaXXXX/testing/testing/bla/testing"));
		assertTrue(pathMatcher.match("/*bla*/**/bla/**", "/XXXblaXXXX/testing/testing/bla/testing/testing"));
		assertTrue(pathMatcher.match("/*bla*/**/bla/**", "/XXXblaXXXX/testing/testing/bla/testing/testing.jpg"));
		assertTrue(pathMatcher.match("/foo/bar/**", "/foo/bar"));

		//这个需要特别注意：{}里面的相当于Spring MVC里接受一个参数一样，所以任何东西都会匹配的
		assertTrue(pathMatcher.match("/{bla}.*", "/testing.html"));
		assertFalse(pathMatcher.match("/{bla}.htm", "/testing.html")); //这样就是false了
	}