// ensure there is no data from previous test
Assert.assertEquals(0, count);
Connector conn = instance.getConnector(auth);
BatchWriter bw = conn.createBatchWriter(Constants.METADATA_TABLE_NAME, 1000, 1000, 1);
for (String line : metadata) {
String[] parts = line.split(" ");
String[] columnParts = parts[1].split(":");
Mutation m = new Mutation(parts[0]);
m.put(new Text(columnParts[0]), new Text(columnParts[1]), new Value(parts[2].getBytes()));