@Test @SuppressWarnings("rawtypes") public void testTableOf() throws Exception { AvroType at = Avros.tableOf(Avros.strings(), Avros.strings()); Pair<String, String> j = Pair.of("a", "b"); org.apache.avro.mapred.Pair w = new org.apache.avro.mapred.Pair(at.getSchema()); w.put(0, new Utf8("a")); w.put(1, new Utf8("b")); // TODO update this after resolving the o.a.a.m.Pair.equals issue initialize(at); assertEquals(j, at.getInputMapFn().map(w)); org.apache.avro.mapred.Pair converted = (org.apache.avro.mapred.Pair) at.getOutputMapFn().map(j); assertEquals(w.key(), converted.key()); assertEquals(w.value(), converted.value()); }