@Test
public void testBasicFunctionWorks() throws Exception {

    final BookMeta bookMeta = new MockBook("TestTitle", mockPlayer.getName());
    bookMeta.setPages(testPages);
    event = new PlayerEditBookEvent(mockPlayer, 1, new MockBook("", ""), bookMeta, false);
    bookListener.loadRuleChain("blank.txt");
    bookListener.onBookEdit(event);
    for (int i = 0; i < bookMeta.getPageCount() - 1; i++) {
        assertEquals(testPages[i], event.getNewBookMeta().getPage(i));
    }
}