### Question:
Utils { public static List<String> asList(String text) { if (StringUtils.isBlank(text)) { return Collections.emptyList(); } else { try { return IOUtils.readLines(new StringReader(text)); } catch (IOException e) { throw new RuntimeException("Cannot get lines", e); } } } private  Utils(); static boolean safeRegexMatch(String pattern, String value); static List<String> asList(String text); static String run(File wd, String cmd, String... args); static String toHexString(byte[] bytes); static String toHexString(byte[] bytes, int start, int len); static String toString(byte[] bytes);  }### Answer:
@Test public void asList_null() { assertTrue(Utils.asList(null).isEmpty()); }
@Test public void asList_blank() { assertTrue(Utils.asList("").isEmpty()); }
@Test public void asList_one() { assertEquals( Arrays.asList("Test"), Utils.asList("Test") ); }
@Test public void asList_two() { assertEquals( Arrays.asList("Test", "Second"), Utils.asList("Test\nSecond") ); }