@Test
public void getMemory() {

    OshiPlatformCache oshi = newOshiPlatformCache();
    GlobalMemory memory = oshi.getMemory();
    Assert.assertNotNull(memory);
    long avail = memory.getAvailable();
    long total = memory.getTotal();
    Assert.assertTrue(avail > -1L);
    Assert.assertTrue(total > -1L);
    print("===MEMORY ===");
    print("  Available=[%s] (%d)", FormatUtil.formatBytes(avail), avail);
    print("  Total=[%s] (%d)", FormatUtil.formatBytes(total), total);
    print("  toString=[%s]", memory.toString());
}