### Question:
Utils { public static <T> List<T> iteratorToList(Iterator<T> iterator) { List<T> result = new ArrayList<T>(); while (iterator.hasNext()) { result.add(iterator.next()); } return result; }  static List<T> iteratorToList(Iterator<T> iterator); static boolean isSnp(List<String> alleles); static char getComplementNucleotide(char allele); static void createEmptyFile(File file, String fileName); static final Map<Character, Character> COMPLEMENTAL_NUCLEOTIDES; }### Answer:
@Test public void iteratorToList() { List<String> list = Arrays.asList("1", "2", null); assertEquals(Utils.iteratorToList(list.iterator()), list); }