### Question:
UZTrackingUtil { public static boolean isTrackedEventTypeView(Context context) { if (context == null) { return false; } return (boolean) SharedPreferenceUtil.get(getPrivatePreference(context), E_VIEW, false); }  static void clearAllValues(Context context); static boolean isTrackedEventTypeDisplay(Context context); static void setTrackingDoneWithEventTypeDisplay(Context context, boolean isDone); static boolean isTrackedEventTypePlaysRequested(Context context); static void setTrackingDoneWithEventTypePlaysRequested(Context context, boolean isDone); static boolean isTrackedEventTypeVideoStarts(Context context); static void setTrackingDoneWithEventTypeVideoStarts(Context context, boolean isDone); static boolean isTrackedEventTypeView(Context context); static void setTrackingDoneWithEventTypeView(Context context, boolean isDone); static boolean isTrackedEventTypeReplay(Context context); static void setTrackingDoneWithEventTypeReplay(Context context, boolean isDone); static boolean isTrackedEventTypePlayThrought25(Context context); static void setTrackingDoneWithEventTypePlayThrought25(Context context, boolean isDone); static boolean isTrackedEventTypePlayThrought50(Context context); static void setTrackingDoneWithEventTypePlayThrought50(Context context, boolean isDone); static boolean isTrackedEventTypePlayThrought75(Context context); static void setTrackingDoneWithEventTypePlayThrought75(Context context, boolean isDone); static boolean isTrackedEventTypePlayThrought100(Context context); static void setTrackingDoneWithEventTypePlayThrought100(Context context, boolean isDone);  }### Answer:
@Test public void isTrackedEventTypeView() { boolean expected = UZTrackingUtil.isTrackedEventTypeView(context); Mockito.verify(sharedPreferences).getBoolean(anyString(), anyBoolean()); assertTrue(expected); }