def METHOD_NAME(self):
    sr = 44100
    frameRate = sr/hopsize # frames per second
    length = 20 # 20 seconds
    size = int(ceil(length*frameRate)) # size in (hop)frames
    fadelength = int(5.0*frameRate) # 5 second aprox
    cutoffHigh = 0.85
    cutoffLow = 0.2
    rms = zeros(size)
    for i in range(fadelength):
       rms[i] = 4.0*i/float(size)
    for i in range(fadelength, size-fadelength):
       rms[i] = 1.0
    for i in range(size-fadelength, size):
       rms[i] = 4.0*(size - i)/float(size)
    meanRms = mean(rms)
    fadeDetection = FadeDetection(frameRate=frameRate, cutoffHigh = cutoffHigh, cutoffLow = cutoffLow )
    foundFadeIn, foundFadeOut = fadeDetection(rms)
    fadeInStop = ceil(fadelength*cutoffHigh*meanRms)/frameRate
    fadeOutStart = length - fadeInStop
    expectedFadeIn = [[0, fadeInStop]]
    expectedFadeOut = [[fadeOutStart, length]]
    self.assertAlmostEqualMatrix(foundFadeIn, expectedFadeIn, 1e-3)
    self.assertAlmostEqualMatrix(foundFadeOut, expectedFadeOut, 1e-3)