### Question:
DigesterPrettyConfigParser implements PrettyConfigParser { public void parse(final PrettyConfigBuilder builder, final InputStream resource) throws IOException, SAXException { if (builder == null) { throw new IllegalArgumentException("Builder must not be null."); } if (resource == null) { throw new IllegalArgumentException("Input stream must not be null."); } final Digester digester = configureDigester(new Digester()); digester.push(builder); digester.parse(resource); }  void parse(final PrettyConfigBuilder builder, final InputStream resource);  }### Answer:
@Test public void testParse() { PrettyUrlMapping mapping = config.getMappingById("0"); assertEquals("0", mapping.getId()); assertEquals("/project/#{viewProjectBean.projectId}/", mapping.getPattern()); assertEquals("#{viewProjectBean.getPrettyTarget}", mapping.getViewId()); List<UrlAction> actions = mapping.getActions(); assertTrue(actions.contains(new UrlAction("#{viewProjectBean.load}"))); assertTrue(actions.contains(new UrlAction("#{viewProjectBean.authorize}"))); }