### Question:
InstantRunBuildContext { @NonNull public InstantRunPatchingPolicy getPatchingPolicy() { return patchingPolicy; } InstantRunBuildContext(
            boolean isInstantRunMode,
            @NonNull AndroidVersion androidVersion,
            @Nullable String targetAbi,
            @Nullable String density,
            boolean createSeparateApkForResources); @VisibleForTesting  InstantRunBuildContext(
            @NonNull BuildIdAllocator buildIdAllocator,
            boolean isInstantRunMode,
            @NonNull AndroidVersion androidVersion,
            @Nullable String targetAbi,
            @Nullable String density,
            boolean createSeparateApkForResources); boolean isInInstantRunMode(); void setBuildHasFailed(); boolean getBuildHasFailed(); long getBuildId(); void startRecording(@NonNull TaskType taskType); long stopRecording(@NonNull TaskType taskType); void setVerifierStatus(@NonNull InstantRunVerifierStatus verifierStatus); void setInstantRunEligibilityStatus(@NonNull InstantRunVerifierStatus verifierStatus); @NonNull InstantRunVerifierStatus getVerifierResult(); boolean hasVerifierStatusBeenSet(InstantRunVerifierStatus status); boolean hasPassedVerification(); @NonNull AndroidVersion getAndroidVersion(); @Nullable String getDensity(); @NonNull InstantRunPatchingPolicy getPatchingPolicy(); boolean useSeparateApkForResources(); @NonNull InstantRunBuildMode getBuildMode(); synchronized void addChangedFile(@NonNull FileType fileType, @NonNull File file); @Nullable Build getLastBuild(); long getSecretToken(); void setSecretToken(long token); @VisibleForTesting Collection<Build> getPreviousBuilds(); void loadFromXmlFile(@NonNull File persistedState); @VisibleForTesting void loadFromXml(@NonNull String persistedState); void mergeFromFile(@NonNull File tmpBuildInfoFile); void mergeFrom(@NonNull String tmpBuildInfo); synchronized void close(); String toXml(); void writeTmpBuildInfo(@NonNull File tmpBuildInfo);  }### Answer:
@Test public void testX86InjectedArchitecture() { InstantRunBuildContext context = new InstantRunBuildContext( idAllocator, true, new AndroidVersion(21, null), "x86", null, true); assertThat(context.getPatchingPolicy()).isEqualTo(MULTI_APK); context = new InstantRunBuildContext( idAllocator, true, new AndroidVersion(23, null), "x86", null, true); assertThat(context.getPatchingPolicy()).isEqualTo(MULTI_APK); assertThat(context.getPatchingPolicy()).isEqualTo(MULTI_APK); }