OperationMap actualParams = op.get("params", OperationMap.class);
if (actualParams != null) { // OK if missing - means 'collectExtraInformation' is FALSE
OperationMap expectedParams = JdbcDriverConnectOperationCollectionAspect.addConnectionProperties(new Operation(), props);
assertEquals("Mismatched parameters size", expectedParams.size(), actualParams.size());
for (String key : expectedParams.keySet()) {
Object expValue = expectedParams.get(key), actValue = actualParams.get(key);
assertEquals("Mismatched value for parameter=" + key, expValue, actValue);
}
}