{
Map<CompoundKey, Foo> results = new HashMap<CompoundKey, Foo>();
CompoundKey c1 = new CompoundKey().append("a", "a1").append("b", 1);
CompoundKey c2 = new CompoundKey().append("a", "a2").append("b", 2);
CompoundKey c3 = new CompoundKey().append("a", "a3").append("b", 3);
Foo record1 = new Foo().setStringField("record1");
Foo record2 = new Foo().setStringField("record2");
results.put(c1, record1);
results.put(c2, record2);
Map<String, Foo> protocol1TransformedResults = new HashMap<String, Foo>();
protocol1TransformedResults.put("a=a1&b=1", record1);