public static String safeToString(char... chars) {
   if (ArrayUtil.length(chars) <= 0) {
     return "";
   } else {
     return new String(chars);
   }
 }
  private static OperationList assertDataBinderFields(
      OperationList list, String key, String... names) {
    assertNotNull(key + ": no list", list);
    assertEquals(key + ": mismatched length", ArrayUtil.length(names), list.size());

    for (int index = 0; index < list.size(); index++) {
      String expected = names[index], actual = list.get(index, String.class);
      assertEquals(key + ": mismatched value at index=" + index, expected, actual);
    }

    return list;
  }