### Question:
FileParseUtils { public static List<Integer> parseToIntegerList(String txt, String separator) { if (txt.length() == 0) return new ArrayList<Integer>(); String[] split = txt.trim().split(separator); List<Integer> ret = new ArrayList<Integer>(split.length); for (String s : split) ret.add(Integer.parseInt(s.trim())); return ret; }  static List<Double> parseToDoubleList(String txt, String separator); static List<Float> parseToFloatList(String txt, String separator); static List<Integer> parseToIntegerList(String txt, String separator); static Map<Integer, Double> parseIntDouble(String file,
            String separator); static Map<Integer, Integer> parseIntInt(String file,
            String separator); static List<Integer> parseIntColumn(String file, int column,
            String separator, boolean skipHeader);  }### Answer:
@Test(expected = NumberFormatException.class) public void testWrongInput() { parseToIntegerList("1.1", " "); }
@Test(expected = NumberFormatException.class) public void testWrongInput2() { parseToIntegerList("1", ""); }
@Test(expected = NumberFormatException.class) public void testWrongInput3() { parseToIntegerList("d", " "); }