final List<Map<String, BookModel>> response = CastUtils.cast(template.requestBody("direct:unmarshal", request, List.class));
final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MMM-yyyy");
BookModel book1 = new BookModel();
book1.setCategory("PROGRAMMING");
book1.setTitle("Camel in Action");
book1.setTitleLanguage("en");
book1.setAuthor1("Claus Ibsen");
book1.setAuthor2("Jon Anstey");
book1.setPublishDate(simpleDateFormat.parse("Dec-2010"));
book1.setPrice(BigDecimal.valueOf(49.99));
BookModel book2 = new BookModel();
book2.setCategory("PROGRAMMING");
book2.setTitle("Apache Camel Developer's Cookbook");
book2.setTitleLanguage("en");
book2.setAuthor1("Scott Cranton");
book2.setAuthor2("Jakub Korab");
book2.setPublishDate(simpleDateFormat.parse("Dec-2013"));
book2.setPrice(BigDecimal.valueOf(49.99));
Map<String, BookModel> response1 = response.get(0);
assertEquals(1, response1.size());
// Map of <class name String>, <Model object value>