new Path(filePath),
new Configuration());
Text routingKey = new Text();
MessageWritable value = new MessageWritable();
StringSerDe serde = new StringSerDe();
int i = 0;
while (r.next(routingKey, value)) {
assertEquals(routingKey.toString(), "routingKey");
assertEquals(serde.deserialize(value.getMessage().getPayload()), message + i);
++i;
}
r.close();
return i;