@Test
public void primaryKey() throws Exception {

    for (Aggregation aggregation : aggregations) {
        byte[] bytes = mapper.writeValueAsBytes(aggregation);
        Item item = itemMapper.fromByteBuffer(ByteBuffer.wrap(bytes));
        assertEquals(itemMapper.primaryKey(item), itemMapper.key(ByteBuffer.wrap(bytes)));
    }
}