@Test
public void testWriteLong() {

	Serializer serializer = new Serializer();
	ByteBuffer byteBuffer = ByteBuffer.allocate(_COUNT * 8);
	byteBuffer.order(ByteOrder.BIG_ENDIAN);
	LongBuffer longBuffer = byteBuffer.asLongBuffer();
	long[] longs = new long[_COUNT];
	for (int i = 0; i < _COUNT; i++) {
		longs[i] = _random.nextLong();
		serializer.writeLong(longs[i]);
		longBuffer.put(longs[i]);
	}
	ByteBuffer serializerByteBuffer = serializer.toByteBuffer();
	Assert.assertArrayEquals(
		byteBuffer.array(), serializerByteBuffer.array());
}