MegaSampleMaps sample = new MegaSampleMaps();
sample.good.put("Windows", new Software("Microsoft", "Windows"));
sample.good.put("Linux", new Software("Red Hat", "Linux"));
sample.good.put("Chrome", new Software("Google", "Chrome"));
sample.bad.put("iPhone", new Product("iPhone", "i", 399.99));
sample.other.put("Intel", new Hardware("i386", "Intel"));
sample.other.put("AMD", new Hardware("amd64", "AMD"));
String expected = "" +
"<MEGA-sample>\n" +
" <software>\n" +
" <vendor>Microsoft</vendor>\n" +