### Question:
OSUtils { public static int getProcessID() { RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean(); return Integer.parseInt(runtimeMXBean.getName().split("@")[0]); } private  OSUtils(); static double memoryUsage(); static double availablePhysicalMemorySize(); static double totalMemorySize(); static double loadAverage(); static double cpuUsage(); static List<String> getUserList(); static boolean createUser(String userName); static String getGroup(); static String exeCmd(String command); static String exeShell(String[] command); static int getProcessID(); static boolean isMacOS(); static boolean isWindows(); static String getOSName(); static Boolean checkResource(double systemCpuLoad, double systemReservedMemory); static Boolean checkResource(Configuration conf, Boolean isMaster); static final ThreadLocal<Logger> taskLoggerThreadLocal; static final String TWO_DECIMAL; static final double NEGATIVE_ONE; }### Answer:
@Test public void getProcessID(){ int processId = OSUtils.getProcessID(); Assert.assertNotEquals(0, processId); }