### Question:
UrlPatternParser { public int getParameterCount() { return expressions.size(); } UrlPatternParser(final String pattern); boolean matches(final String url); Map<String, String> getMappedParameters(final String url); String getMappedUrl(final Object... params); void setUrlPattern(final String urlPattern); int getParameterCount();  }### Answer:
@Test public void testGetParameterCount() { assertEquals(3, parser.getParameterCount()); }