    @Test
    public void testSetCounts() {

        Location mockLocation = new Location(LocationManager.GPS_PROVIDER);

        {
            StumblerBundle bundle = new StumblerBundle(mockLocation);
            testObservationCounts(bundle, 0, 0); // empty

            for (String bssid : new String[]{"01:23:45:67:89:ab", "23:45:67:89:ab:cd"}) {
                ScanResult scanResult = createScanResult(bssid, "", 0, 0, 0);
                bundle.addWifiData(bssid, scanResult);
            }
            testObservationCounts(bundle, 0, 2); // wifi only

            CellInfo cellInfo = createLteCellInfo(208, 1, 12345, CellInfo.UNKNOWN_CID, 2, 31, 1);
            bundle.addCellData(cellInfo.getCellIdentity(), cellInfo);
            testObservationCounts(bundle, 1, 2); // wifi and cell
        }

        {
            StumblerBundle bundle = new StumblerBundle(mockLocation);
            CellInfo cellInfo = createLteCellInfo(208, 1, 12345, CellInfo.UNKNOWN_CID, 2, 31, 1);
            bundle.addCellData(cellInfo.getCellIdentity(), cellInfo);
            testObservationCounts(bundle, 1, 0); // cell only
        }
    }