public static void main(String[] args) {
// create some data
// use a.b.m2.Book which has 1:N relations (collection) to other beans
Book book = new Book("History of Britain", "John O'Farrel", ImmutableList.copyOf(new Section[] {
new Section("Section1", "no description", ImmutableSet.copyOf(new Paragraph[] {
new Paragraph(1, "Bla bla bla"),
new Paragraph(1, "Bla bla bla"),
})),
new Section("Section2", "no description", ImmutableSet.copyOf(new Paragraph[] {
new Paragraph(1066, "Bla bla bla"),
})),
new Section("Section3", "no description", ImmutableSet.copyOf(new Paragraph[] {
new Paragraph(1, "Bla bla bla"),
new Paragraph(2, "Bla bla bla"),
new Paragraph(3, "Bla bla bla"),
})),
}));
// instantiate cloner
BookCloner988 bookCloner = new BookCloner988();