XFSUtils { public static String getVersionAsString(int i) { String v = Integer.toString(i & 0xFF); return v + "." + Integer.toString((i) >>> 8); }  static int getVersionsRequired(String lowestVersion, String highestVersion); static int getVersion(String version); static String getVersionAsString(int i);  }
@Test public void testGetVersionAsString() { assertEquals("2.10", XFSUtils.getVersionAsString(0x0A02)); assertEquals("1.0", XFSUtils.getVersionAsString(0x0001)); assertEquals("3.11", XFSUtils.getVersionAsString(0x0B03)); assertEquals("4.2", XFSUtils.getVersionAsString(0x0204)); }