PlacementData { boolean isPlacedAd(final int position) { final int index = binarySearch(mAdjustedAdPositions, 0, mPlacedCount, position); return index >= 0; } private  PlacementData(@NonNull final int[] desiredInsertionPositions);  final static int NOT_FOUND; }
@Test public void initialState_isPlacedAd() { assertThat(adsAt15repeating.isPlacedAd(0)).isFalse(); assertThat(adsAt15repeating.isPlacedAd(1)).isFalse(); assertThat(adsAt15repeating.isPlacedAd(10)).isFalse(); assertThat(adsAt15repeating.isPlacedAd(1000)).isFalse(); assertThat(noAds.isPlacedAd(0)).isFalse(); assertThat(noAds.isPlacedAd(1000)).isFalse(); }