@Test
public void appendEmptyDataDoesntDoAnything(){

    final int samplingRate =10;
    final int dataSize=7;
    AudioBuffer buf = new AudioBuffer(samplingRate,1);
    Assert.assertEquals(dataSize,buf.append(new short[dataSize]));
    Assert.assertEquals(dataSize,buf.append(new short[0]));
}