### Question:
TextUtil { public static String getFirstNonEmpty(String... values) { if (values == null || values.length < 1) { return null; } List<String> list = Arrays.asList(values); for (String item : list) { if (StringUtils.isNotBlank(item)) { return item; } } return null; } private  TextUtil(); static T getFirstNonNull(T... values); static String getFirstNonEmpty(String... values); static T getFirstProperty(Resource resource, Class<T> klass, String... keys); static T getFirstProperty(ValueMap valueMap, Class<T> klass, String... keys); static boolean isRichText(String str);  }### Answer:
@Test public void testGetFirstNonEmpty() { String first = null; String second = ""; String third = "third"; String fourth = "fourth"; String expResult = "third"; String result = TextUtil.getFirstNonEmpty(first, second, third, fourth); assertEquals(expResult, result); }