@Test
public void canReadTenFrames() throws Exception {

    int numDoubles = 10;
    TestProducer producer = new TestProducer(numDoubles);
    producer.start();
    AudioInputStream ais = new DDSAudioInputStream(producer, getTestAudioFormat());
    assertEquals(numDoubles, ais.getFrameLength());
    int bytesRead = ais.read(new byte[16000]);
    assertEquals(2*numDoubles, bytesRead);
    
}