@Test
public void testMapper() throws Exception {

    for (Aggregation aggregation : aggregations) {
        Item item = itemMapper.fromByteBuffer(serialize(aggregation));
        assertEquals((long) aggregation.getCampaignItemId(), item.getLong("campaign_item_id"));
        //assertEquals(aggregation.getPeriod(), item.getString("period"));
        assertEquals((long) aggregation.getClicks(), item.getLong("clicks"));
        assertEquals((long) aggregation.getImps(), item.getLong("imps"));
        assertEquals((long) aggregation.getBids(), item.getLong("bids"));
    }
}