	@Test
	public void testCopy() {


		Random rnd = new Random();

		KVOperation<Integer, Integer>[] ops = gen.generate(1000);
		KVOperationSerializer<Integer, Integer> serializer = gen.getSerializer();

		for (KVOperation<Integer, Integer> op : ops) {
			assertEquals(op, serializer.copy(op));
		}

		for (KVOperation<Integer, Integer> op : ops) {
			assertEquals(op, serializer.copy(op, ops[rnd.nextInt(ops.length)]));
		}
	}