### Question:
PrettyConfig { public boolean isURLMapped(final URL url) { UrlMapping mapping = getMappingForUrl(url); return mapping != null; } PrettyConfig(); void setDynaviewId(final String facesDynaViewId); String getDynaviewId(); List<RewriteRule> getGlobalRewriteRules(); void setGlobalRewriteRules(final List<RewriteRule> rules); List<UrlMapping> getMappings(); void setMappings(final List<UrlMapping> mappings); UrlMapping getMappingForUrl(final URL url); boolean isMappingId(final String id); boolean isURLMapped(final URL url); boolean isViewMapped(String viewId); UrlMapping getMappingById(String id); boolean isUseEncodeUrlForRedirects(); void setUseEncodeUrlForRedirects(boolean useEncodeUrlForRedirects); @Override String toString(); static final String CONFIG_REQUEST_KEY; }### Answer:
@Test public void testIsURLMapped() throws Exception { assertTrue(config.isURLMapped(new URL("/home/en/test/"))); assertFalse(config.isViewMapped("/home/en/notmapped/okthen")); }