### Question:
URLPatternParser { public int getParameterCount() { return pathParameters.size(); } URLPatternParser(final String pattern); boolean matches(final URL target); @Deprecated boolean matches(final String target); List<PathParameter> getPathParameters(); List<PathParameter> parse(final URL url); URL getMappedURL(final Object... params); int getParameterCount(); Object getPattern(); boolean isElPattern();  }### Answer:
@Test public void testGetParameterCount() { URLPatternParser parser = new URLPatternParser( "/project/#{paramsBean.project}/#{paramsBean.iteration}/#{paramsBean.story}"); assertEquals(3, parser.getParameterCount()); }