when(block.getType()).thenReturn(Material.LOG);
when(block.getData()).thenReturn((byte) 0);
when(block.getLocation()).thenReturn(new Location(world, 64,64,64));
lopper.enabledBlocks = new ArrayList<ItemInfo>();
lopper.enabledBlocks.add(new ItemInfo(Material.LOG, 0));
lopper.enabledItems = new ArrayList<ItemInfo>();
lopper.enabledItems.add(new ItemInfo(Material.DIAMOND_AXE, -1));
getConfig().showPermissionMessages = true;
when(CraftBookPlugin.inst().hasPermission(Matchers.<CommandSender>any(), Matchers.anyString())).thenReturn(false);