private static void createRandomDataFile(FileSystem fs, Path path, int size) throws IOException {
    FSDataOutputStream stream = fs.create(path);
    try {
      byte[] data = new byte[1024];
      for (int i = 0; i < data.length; ++i) {
        data[i] = (byte) (i & 0xff);
      }
      while (size >= data.length) {
        stream.write(data, 0, data.length);
        size -= data.length;
      }
      if (size > 0) {
        stream.write(data, 0, size);
      }
    } finally {
      stream.close();
    }
  }
Write a random data file and a non-file in a dir with a valid family name but not part of the
table families. we should we able to bulkload without getting the unmatched family exception.
HBASE-13037/HBASE-13227
hbase-server/src/test/java/org/apache/hadoop/hbase/tool/TestBulkLoadHFiles.java