}
private void testSerializingSlicedFacet(final ExtTLongObjectHashMap<TObjectIntHashMap<BytesRef>> counts) throws Exception {
final ExtTLongObjectHashMap<TObjectIntHashMap<BytesRef>> sentCounts =
deepCopySliced(counts);
final InternalSlicedFacet toSend = new InternalSlicedFacet("qux", sentCounts);
final InternalSlicedFacet toReceive = new InternalSlicedFacet();
serializeAndDeserialize(toSend, toReceive);
final ExtTLongObjectHashMap<TObjectIntHashMap<BytesRef>> receivedCounts =
new ExtTLongObjectHashMap<TObjectIntHashMap<BytesRef>>(toReceive.peekCounts());
// Check against original counts as sentCounts may have been recycled
compareSlicedCounts(counts, receivedCounts);
}