ReplicationMsg msg = broker.receive();
assertTrue(msg instanceof AddMsg,
"The received replication message is not an ADD msg : " + msg);
AddMsg addMsg = (AddMsg) msg;
Operation receivedOp = addMsg.createOperation(connection);
assertTrue(OperationType.ADD.compareTo(receivedOp.getOperationType()) == 0,
"The received replication message is not an ADD msg : " + addMsg);
assertEquals(DN.decode(addMsg.getDn()),personEntry.getDN(),
"The received ADD replication message is not for the excepted DN : " + addMsg);