throws NullPointerException, MalformedURLException {
final Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(HashMap.class);
enhancer.setCallback(new InterceptingHandler());
enhancer.setUseFactory(true);
final Map orig = (Map)enhancer.create();
orig.put("URL", new URL("http://xstream.codehaus.org"));
final StringBuffer xml = new StringBuffer(""
+ "<CGLIB-enhanced-proxy>\n"
+ " <type>java.util.HashMap</type>\n"
+ " <interfaces/>\n"