### Question:
RecordValidationServiceImpl implements RecordValidationService { private boolean isValueWithinRange(BigDecimal value, double lowerBound, double upperBound) { if(value == null) { return false; } return isValueWithinRange(value.doubleValue(), lowerBound, upperBound); }  @Override boolean validateInferenceRecord(NycQueuedInferredLocationBean inferredRecord); @Override boolean validateRealTimeRecord(RealtimeEnvelope realTimeRecord); @Override boolean validateLastKnownRecord(CcAndInferredLocationRecord record); @Override boolean isValueWithinRange(Double value, double lowerBound, double upperBound); @Override boolean validateArchiveInferenceRecord(
      ArchivedInferredLocationRecord inferredRecord);  }### Answer:
@Test public void testValueWithinRange() { double lowerBound = -999.999999; double upperBound = 999.999999; boolean inRange = validationService.isValueWithinRange(null, lowerBound, upperBound); assertFalse("Value not in given range", inRange); inRange = validationService.isValueWithinRange(-1001.2356, lowerBound, upperBound); assertFalse("Value not in given range", inRange); inRange = validationService.isValueWithinRange(2500.24521, lowerBound, upperBound); assertFalse("Value not in given range", inRange); inRange = validationService.isValueWithinRange(99.2452187, lowerBound, upperBound); assertTrue("Value is in given range", inRange); inRange = validationService.isValueWithinRange(43.895554, lowerBound, upperBound); assertTrue("Value is in given range", inRange); }