### Question:
MemoryUtil { public static PssInfo getAppPssInfo(Context context) { final int pid = ProcessUtils.getCurrentPid(); if (sActivityManager == null) { sActivityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); } Debug.MemoryInfo memoryInfo = sActivityManager.getProcessMemoryInfo(new int[]{pid})[0]; PssInfo pssInfo = new PssInfo(); pssInfo.totalPssKb = memoryInfo.getTotalPss(); pssInfo.dalvikPssKb = memoryInfo.dalvikPss; pssInfo.nativePssKb = memoryInfo.nativePss; pssInfo.otherPssKb = memoryInfo.otherPss; return pssInfo; }  static HeapInfo getAppHeapInfo(); static PssInfo getAppPssInfo(Context context); static RamInfo getRamInfo(Context context);  }### Answer:
@Test public void getAppPssInfo() { try { PssInfo pssInfo = MemoryUtil.getAppPssInfo(GodEye.instance().getApplication()); } catch (NullPointerException ignore) { } catch (Throwable e) { Assert.fail(); } }