### Question:
MemoryUtil { public static HeapInfo getAppHeapInfo() { Runtime runtime = Runtime.getRuntime(); HeapInfo heapInfo = new HeapInfo(); heapInfo.freeMemKb = runtime.freeMemory() / 1024; heapInfo.maxMemKb = Runtime.getRuntime().maxMemory() / 1024; heapInfo.allocatedKb = (Runtime.getRuntime().totalMemory() - runtime.freeMemory()) / 1024; return heapInfo; }  static HeapInfo getAppHeapInfo(); static PssInfo getAppPssInfo(Context context); static RamInfo getRamInfo(Context context);  }### Answer:
@Test public void getAppHeapInfo() { HeapInfo heapInfo = MemoryUtil.getAppHeapInfo(); Assert.assertTrue(heapInfo.allocatedKb > 0); Assert.assertTrue(heapInfo.freeMemKb > 0); Assert.assertTrue(heapInfo.maxMemKb > 0); }