assertTrue(jsonValue.isNull());
}
public void testBeanWrapper() throws Exception
{
BookWrapper bookWrapper = new BookWrapper();
bookWrapper.setBook(junitBook);
JsonValue jsonValue = new JsonGeneratorImpl().createJsonObject(bookWrapper);
assertTrue(jsonValue.isObject());
assertEquals(junitBook.getAuthor(), jsonValue.getElement("book").getElement("author").getStringValue());
assertEquals(junitBook.getTitle(), jsonValue.getElement("book").getElement("title").getStringValue());
assertEquals(junitBook.getPages(), jsonValue.getElement("book").getElement("pages").getIntValue());