### Question:
OSChecker { public static boolean matchArch(String name) { return osArchitecture.equalsIgnoreCase(name); }  static boolean match(String name); static boolean match(String name, int majorVersion, int minorVersion); static boolean matchApprox(String name); static boolean atleast(String name, int majorVersion, int minorVersion); static boolean matchArch(String name); static boolean isSolaris(); static boolean isWindows(); static boolean isUnix(); static boolean isAIX(); static boolean isLinux(); static boolean isOSX(); static int getOsMajorVersion(); static int getOsMinorVersion(); static void parseVersion(String version); static boolean isHPUX(); static String OS_NAME; static String OS_VERSION; static String DOT; static String OS_ARCH; static String SUNOS; static String WINDOWS; static String AIX; static String LINUX; static String HPUX; static String OSX; }### Answer:
@Test public void testArchitecture() { int foundArch = 0; for (String arch : ARCHITECTURES) { if (matchArch(arch)) { foundArch++; } } assertEquals(foundArch, 1, "Expected " + System.getProperty("os.arch") + " to be one of " + ARCHITECTURES); }