Map<String, String> ctxVarProps = new HashMap<String, String>();
ctxVarProps.put("lang", "en");
ctxVarProps.put("branch", "dev");
RecordId ctx = idGenerator.newRecordId(idGenerator.newRecordId("0"), ctxVarProps);
RecordId resolved = link.resolve(ctx, idGenerator);
assertNull(resolved.getVariantProperties().get("lang"));
assertEquals("dev", resolved.getVariantProperties().get("branch"));
assertEquals("1", resolved.getVariantProperties().get("x"));
assertEquals(2, resolved.getVariantProperties().size());