@Test
public void testRandomTextDataGenerator() {

  RandomTextDataGenerator rtdg = new RandomTextDataGenerator(10, 0L, 5);
  List<String> words = rtdg.getRandomWords();
  // check the size
  assertEquals("List size mismatch", 10, words.size());
  // check the words
  Set<String> wordsSet = new HashSet<String>(words);
  assertEquals("List size mismatch due to duplicates", 10, wordsSet.size());
  // check the word lengths
  for (String word : wordsSet) {
    assertEquals("Word size mismatch", 5, word.length());
  }
}