final Software[] software = new Software[]{
new Software("Microsoft", "Windows"),
new OpenSourceSoftware("Codehaus", "XStream", "BSD")};
final StringWriter writer = new StringWriter();
final PrettyPrintWriter prettyPrintWriter = new PrettyPrintWriter(writer);
new TreeMarshaller(prettyPrintWriter, converterLookup, mapper).start(software, null);
prettyPrintWriter.flush();
assertEquals(""
+ "<software-array>\n"
+ " <software vendor=\"Microsoft\">Windows</software>\n"
+ " <open-source vendor=\"Codehaus\" name=\"XStream\">BSD</open-source>\n"