Map<ImmutableBytesWritable, Result> materialized = words.materializeToMap();
assertEquals(3, materialized.size());
PCollection<Put> puts = wordCount(words);
pipeline.write(puts, new HBaseTarget(outputTableName));
pipeline.write(puts, new HBaseTarget(otherTableName));
PipelineResult res = pipeline.done();
assertTrue(res.succeeded());
assertIsLong(otherTable, "cat", 2);
assertIsLong(otherTable, "dog", 1);
assertIsLong(outputTable, "cat", 2);
assertIsLong(outputTable, "dog", 1);