### Question:
AudioBuffer { public int getBufferLength() { return mData.length; } AudioBuffer(int samplingRate, int maxLengthSec); int getSamplingRate(); int append(short data[]); boolean isFull(); int getBufferLength(); void writeLittleEndianTo(OutputStream out); synchronized void writeTo(AudioTrack out);  }### Answer:
@Test public void bufferContainsEnoughtSpace(){ final int samplingRate = 10; final int maxSecond = 4; AudioBuffer buf = new AudioBuffer(samplingRate,maxSecond); assertTrue(samplingRate*maxSecond<=buf.getBufferLength()); }