PlacementData { int getOriginalCount(final int count) { if (count == 0) { return 0; } final int originalPos = getOriginalPosition(count - 1); return (originalPos == NOT_FOUND) ? NOT_FOUND : originalPos + 1; } private  PlacementData(@NonNull final int[] desiredInsertionPositions);  final static int NOT_FOUND; }
@Test public void initialState_getOriginalCount() { assertThat(adsAt15repeating.getOriginalCount(0)).isEqualTo(0); assertThat(adsAt15repeating.getOriginalCount(1)).isEqualTo(1); assertThat(adsAt15repeating.getOriginalCount(10)).isEqualTo(10); assertThat(adsAt15repeating.getOriginalCount(1000)).isEqualTo(1000); assertThat(noAds.getOriginalCount(0)).isEqualTo(0); assertThat(noAds.getOriginalCount(1000)).isEqualTo(1000); }