@Test
public void setLocalHost() {

    String old = SystemInfo.getLocalHost();
    try {
        SystemInfo.setLocalHost("xxx");
        Assert.assertEquals("xxx", SystemInfo.getLocalHost());
    } finally {
        SystemInfo.setLocalHost(old);
    }
}