book.getMetadata().addTitle("Epublib test book 1");
book.getMetadata().addTitle("test2");
book.getMetadata().addIdentifier(new Identifier(Identifier.Scheme.ISBN, "987654321"));
book.getMetadata().addAuthor(new Author("Joe", "Tester"));
book.setCoverPage(new Resource(this.getClass().getResourceAsStream("/book1/cover.html"), "cover.html"));
book.setCoverImage(new Resource(this.getClass().getResourceAsStream("/book1/cover.png"), "cover.png"));
book.addSection("Chapter 1", new Resource(this.getClass().getResourceAsStream("/book1/chapter1.html"), "chapter1.html"));
book.addResource(new Resource(this.getClass().getResourceAsStream("/book1/book1.css"), "book1.css"));
TOCReference chapter2 = book.addSection("Second chapter", new Resource(this.getClass().getResourceAsStream("/book1/chapter2.html"), "chapter2.html"));