public void testProxyTypeCanBeAliased() throws MalformedURLException {
final Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(HashMap.class);
enhancer.setCallback(new DelegatingHandler(new HashMap()));
final Map orig = (Map)enhancer.create();
orig.put("URL", new URL("http://xstream.codehaus.org"));
xstream.aliasType("cglib", Map.class);
final String expected = ""
+ "<cglib>\n"
+ " <type>java.util.HashMap</type>\n"