public void testValidPeriod() throws URISyntaxException { for (int i = ConfigUriBeacon.UINT16_MIN_VALUE; i <= ConfigUriBeacon.UINT16_MAX_VALUE; i++) { ConfigUriBeacon beacon = new ConfigUriBeacon.Builder() .uriString(TestData.emptyTestString) .advertisedTxPowerLevels(makeTxPowerLevelArray(TestData.validTxPowerLevels)) .txPowerMode(TestData.validTxPowerMode) .beaconPeriod(i) .build(); assertEquals(i, beacon.getBeaconPeriod()); } }