public class SerializationTest {
@Test
public void testLongSerialization() throws Exception {
final List<Long> randomInts = generateRandomLongs(1000);
final BytesRefHash sentHash = new BytesRefHash();
for(final Long word : randomInts) {
sentHash.add(new BytesRef(word.toString()));
}
final InternalStringTermListFacet sentFacet = new InternalStringTermListFacet("foo", sentHash, Constants.FIELD_DATA_TYPE.INT);
final InternalStringTermListFacet receivedFacet = new InternalStringTermListFacet();
serializeAndDeserialize(sentFacet, receivedFacet);