### Question:
NativeSystemInfo implements SystemInfo { public List<ServiceInfo> getAllServices() throws SystemInfoException { throw new UnsupportedOperationException("Cannot get services for this platform"); } NativeSystemInfo(); boolean isNative(); OperatingSystemType getOperatingSystemType(); String getOperatingSystemName(); String getOperatingSystemVersion(); String getHostname(); List<NetworkAdapterInfo> getAllNetworkAdapters(); NetworkAdapterStats getNetworkAdapterStats(String interfaceName); NetworkStats getNetworkStats(String addressName, int port); List<NetConnection> getNetworkConnections(String addressName, int port); List<ServiceInfo> getAllServices(); List<ProcessInfo> getAllProcesses(); List<ProcessInfo> getProcesses(String piq); ProcessInfo getThisProcess(); ProcessExecutionResults executeProcess(ProcessExecution processExecution); int getNumberOfCpus(); Mem getMemoryInfo(); Swap getSwapInfo(); String readLineFromConsole(boolean noEcho); void writeLineToConsole(String line); CpuInformation getCpu(int cpuIndex); List<FileSystemInfo> getFileSystems(); List<FileSystemInfo> getFileSystemsDeferredUsageInfo(); FileSystemInfo getFileSystem(String path); @Override DirUsage getDirectoryUsage(String path); String getSystemArchitecture();  }### Answer:
@Test(enabled = ENABLED) public void testGetAllServices() throws Exception { final SystemInfo sysinfo = SystemInfoFactory.createSystemInfo(); if (!sysinfo.isNative()) { System.out.println("~~~ Native library is not available - skipping testGetAllServices"); return; } if (sysinfo.getOperatingSystemType() != OperatingSystemType.WINDOWS) { System.out.println("~~~ Native library is not windows - skipping testGetAllServices"); return; } List<ServiceInfo> allServices = sysinfo.getAllServices(); assert allServices != null; assert allServices.size() > 0; }