### Question:
InstantRunAnalyticsHelper { @VisibleForTesting @NonNull static InstantRunStatus.BuildMode convert(@NonNull InstantRunBuildMode mode) { switch (mode) { case HOT_WARM: return InstantRunStatus.BuildMode.HOT_WARM; case COLD: return InstantRunStatus.BuildMode.COLD; case FULL: return InstantRunStatus.BuildMode.FULL; default: return InstantRunStatus.BuildMode.UNKNOWN_BUILD_MODE; } } private  InstantRunAnalyticsHelper(); @NonNull static InstantRunStatus generateAnalyticsProto(
            @NonNull InstantRunBuildContext buildContext);  }### Answer:
@Test public void checkBuildModeEnum() { for (InstantRunBuildMode mode : InstantRunBuildMode.values()) { assertEquals(mode.toString(), InstantRunAnalyticsHelper.convert(mode).toString()); } }
@Test public void checkPatchingPolicyEnum() { for (InstantRunPatchingPolicy policy : InstantRunPatchingPolicy.values()) { assertEquals(policy.toString(), InstantRunAnalyticsHelper.convert(policy).toString()); } assertEquals( InstantRunStatus.PatchingPolicy.UNKNOWN_PATCHING_POLICY, InstantRunAnalyticsHelper.convert((InstantRunPatchingPolicy) null)); }
@Test public void checkVerifierStatusEnum() { for (InstantRunVerifierStatus status : InstantRunVerifierStatus.values()) { assertEquals(status.toString(), InstantRunAnalyticsHelper.convert(status).toString()); } }