SystemInfo { public static void setLocalHost(String localhost) { LOCALHOST = localhost; }  static boolean isWindows(); static Boolean isLinux(); static boolean isMac(); static int getCpuCores(); static String getLocalHost(); static void setLocalHost(String localhost); static String getHostMachine();  }
@Test public void setLocalHost() { String old = SystemInfo.getLocalHost(); try { SystemInfo.setLocalHost("xxx"); Assert.assertEquals("xxx", SystemInfo.getLocalHost()); } finally { SystemInfo.setLocalHost(old); } }