### Question:
CollQueryFunctions { @Nullable public static <T> T coalesce(T... args) { for (T arg : args) { if (arg != null) { return arg; } } return null; } private  CollQueryFunctions(); static boolean equals(Object o1, Object o2); static int compareTo(T c1, T c2); static boolean between(A a, A b, A c); static double cot(double x); static double coth(double x); static double degrees(double x); static double radians(double x); static double log(double x, int y); @Nullable static T coalesce(T... args); static T nullif(T first, T second); static int getYearMonth(Date date); static int getDayOfMonth(Date date); static int getDayOfWeek(Date date); static int getDayOfYear(Date date); static int getHour(Date date); static int getMilliSecond(Date date); static int getMinute(Date date); static int getMonth(Date date); static int getSecond(Date date); static int getWeek(Date date); static int getYear(Date date); static int getYearWeek(Date date); static Collection<T> leftJoin(Collection<T> coll); static Number aggregate(Collection<Number> source, Expression<?> expr, Operator aggregator); static boolean like(final String str, String like); static boolean like(String str, String like, char escape); static boolean likeIgnoreCase(String str, String like); static boolean likeIgnoreCase(String str, String like, char escape); static T get(Object parent, String f);  }### Answer:
@Test public void coalesce() { assertEquals("1", CollQueryFunctions.coalesce("1",null)); assertEquals("1", CollQueryFunctions.coalesce(null,"1","2")); assertNull(CollQueryFunctions.coalesce(null,null)); }