### Question:
CompatUtils { public static int generateViewId() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { return View.generateViewId(); } else { while (true) { final int result = viewId.get(); int newValue = result + 1; if (newValue > 0x00FFFFFF) newValue = 1; if (viewId.compareAndSet(result, newValue)) { return result; } } } }  static int generateViewId();  }### Answer:
@Test public void generateViewId() throws Exception { assertThat(CompatUtils.generateViewId()) .isPositive() .isNotEqualTo(CompatUtils.generateViewId()); }