@Test
public void testWriteFloat() {

	Serializer serializer = new Serializer();
	ByteBuffer byteBuffer = ByteBuffer.allocate(_COUNT * 4);
	byteBuffer.order(ByteOrder.BIG_ENDIAN);
	FloatBuffer floatBuffer = byteBuffer.asFloatBuffer();
	float[] floats = new float[_COUNT];
	for (int i = 0; i < _COUNT; i++) {
		floats[i] = _random.nextFloat();
		serializer.writeFloat(floats[i]);
		floatBuffer.put(floats[i]);
	}
	ByteBuffer serializerByteBuffer = serializer.toByteBuffer();
	Assert.assertArrayEquals(
		byteBuffer.array(), serializerByteBuffer.array());
}