@Test
public void testWriteInt() {

	Serializer serializer = new Serializer();
	ByteBuffer byteBuffer = ByteBuffer.allocate(_COUNT * 4);
	byteBuffer.order(ByteOrder.BIG_ENDIAN);
	IntBuffer intBuffer = byteBuffer.asIntBuffer();
	int[] ints = new int[_COUNT];
	for (int i = 0; i < _COUNT; i++) {
		ints[i] = _random.nextInt();
		serializer.writeInt(ints[i]);
		intBuffer.put(ints[i]);
	}
	ByteBuffer serializerByteBuffer = serializer.toByteBuffer();
	Assert.assertArrayEquals(
		byteBuffer.array(), serializerByteBuffer.array());
}