### Question:
ConfigResourceBundleParser implements ResourceBundleParser { @SuppressWarnings({ "rawtypes", "unchecked" }) @Override public Map<String, String> parse(ResourceObject file) { return (Map) file.parsedTo(parser).asIs(); }  @SuppressWarnings({ "rawtypes", "unchecked" }) @Override Map<String, String> parse(ResourceObject file);  }### Answer:
@Test public void testParseConfig() throws Exception { ResourceKey key = bundle("test"); ConfigResourceBundleParser parser = new ConfigResourceBundleParser(); String name = "test.conf"; String resolvedName = "/" + name; URL url = getClass().getResource(resolvedName); ResourceObject file = new URIResourceObject(url.toURI(), key.getBundle(), resolvedName, 0); Map<String, String> map = parser.parse(file); assertNotNull(map); assertEquals(5, map.size()); assertEquals("25", map.get("mail.server.port")); assertEquals("localhost", map.get("mail.server.host")); }