@Test
public void bufferContainsEnoughtSpace(){

    final int samplingRate = 10;
    final int maxSecond = 4;
    AudioBuffer buf = new AudioBuffer(samplingRate,maxSecond);
    assertTrue(samplingRate*maxSecond<=buf.getBufferLength());
}