### Question:
Util { public static long getZxidFromName(String name) { long zxid = -1; String nameParts[] = name.split("\\."); if (nameParts.length == 2 && (nameParts[0].equals("snapshot") || nameParts[0].equals("log"))) { try { zxid = parseLong(nameParts[1], 16); } catch (NumberFormatException e) { } } return zxid; }  static long getZxidFromName(String name); static String getACLString(int perms); static byte[] readData(DataNode dataNode); static String longToHexString(long number);  }### Answer:
@Test public void getZxidFromNameTest(){ String name1 = "log.46"; String name2 = "snapshot.44"; long zxid1 = 70; long zxid2 = 68; assertEquals(zxid1,getZxidFromName(name1)); assertEquals(zxid2,getZxidFromName(name2)); }