### Question:
MultiDex { static boolean isVMMultidexCapable(String versionString) { boolean isMultidexCapable = false; if (versionString != null) { StringTokenizer tokenizer = new StringTokenizer(versionString, "."); String majorToken = tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null; String minorToken = tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null; if (majorToken != null && minorToken != null) { try { int major = Integer.parseInt(majorToken); int minor = Integer.parseInt(minorToken); isMultidexCapable = (major > VM_WITH_MULTIDEX_VERSION_MAJOR) || ((major == VM_WITH_MULTIDEX_VERSION_MAJOR) && (minor >= VM_WITH_MULTIDEX_VERSION_MINOR)); } catch (NumberFormatException e) { } } } Log.i(TAG, "VM with version " + versionString + (isMultidexCapable ? " has multidex support" : " does not have multidex support")); return isMultidexCapable; } private  MultiDex(); static void install(Context context); static void installInstrumentation(Context instrumentationContext,
            Context targetContext);  }### Answer:
@Test public void testVersionCheck() { Assert.assertFalse(MultiDex.isVMMultidexCapable(null)); Assert.assertFalse(MultiDex.isVMMultidexCapable("-1.32.54")); Assert.assertFalse(MultiDex.isVMMultidexCapable("1.32.54")); Assert.assertFalse(MultiDex.isVMMultidexCapable("1.32")); Assert.assertFalse(MultiDex.isVMMultidexCapable("2.0")); Assert.assertFalse(MultiDex.isVMMultidexCapable("2.000.1254")); Assert.assertTrue(MultiDex.isVMMultidexCapable("2.1.1254")); Assert.assertTrue(MultiDex.isVMMultidexCapable("2.1")); Assert.assertTrue(MultiDex.isVMMultidexCapable("2.2")); Assert.assertTrue(MultiDex.isVMMultidexCapable("2.1.0000")); Assert.assertTrue(MultiDex.isVMMultidexCapable("2.2.0000")); Assert.assertTrue(MultiDex.isVMMultidexCapable("002.0001.0010")); Assert.assertTrue(MultiDex.isVMMultidexCapable("3.0")); Assert.assertTrue(MultiDex.isVMMultidexCapable("3.0.0")); Assert.assertTrue(MultiDex.isVMMultidexCapable("3.0.1")); Assert.assertTrue(MultiDex.isVMMultidexCapable("3.1.0")); Assert.assertTrue(MultiDex.isVMMultidexCapable("03.1.132645")); Assert.assertTrue(MultiDex.isVMMultidexCapable("03.2")); }