### Question:
NormalizeAudio { public boolean meanIsWithinTargetRange(Double target, Double mean) { Double unRoundedNumberOffset = target - mean; Double roundedNumberOffset = (double) Math.round(unRoundedNumberOffset * 10) / 10; if (Math.abs(roundedNumberOffset) > TARGET_RANGE) { return false; } return true; }  double normalizeLoopFiles(String directory); double normalizeFilesInADirectory(String directory); void cleanup(String directoryPath); List<Path> renameToProcessing(String directoryPath); List<Path> getWavPathsFromDirectory(String directoryPath); List<Path> getProcessingPathsFromWavPaths(List<Path> wavPaths); Map<Path, Double> renameToProcessing(Map<Path, Double> wavPaths, List<Path> alreadyRenamed); HashMap<Path, Double> createMeanVolumeMap(List<Path> paths); void normalize(Map<Path, Double> meanVolumeMap, double targetMean, String directory); void normalizeToTarget(Map<Path, Double> meandddOffSets, List<Path> alreadyAdjusted, List<Path> alreadyRenamed); Double getMeanOfMeans(Map<Path, Double> meanVolumeMap); HashMap<Path, Double> calculateMeanOffset(Double target, Map<Path, Double> meanVolumeMap); boolean meansWithinTargetRange(Double target, Map<Path, Double> means); boolean meanIsWithinTargetRange(Double target, Double mean); void normalizeMix(String mixFilePath, String mixFileName, int numOfGeneratedMixes); @Autowired
    public AppConfigs appConfigs; }### Answer:
@Test public void shouldReturnTrue_whenMeanIsInRange(){ Double mean = -9.5; Double target = -9.0; boolean withinRange = normalizeAudio.meanIsWithinTargetRange(target, mean); assertThat(withinRange).isTrue(); }
@Test public void shouldReturnFalse_whenMeanIsNotInRange(){ Double mean = 9.5; Double target = -9.0; boolean withinRange = normalizeAudio.meanIsWithinTargetRange(target, mean); assertThat(withinRange).isFalse(); }