@Test
public void testGetAudioFileFormatWithFlacFile() throws UnsupportedAudioFileException, IOException {

    final FlacAudioFileReader flacAudioFileReader = new FlacAudioFileReader();
    final AudioFileFormat audioFileFormat = flacAudioFileReader.getAudioFileFormat(getFlacTestFile("cymbals.flac"));
    assertNotNull(audioFileFormat);
    assertEquals("flac", audioFileFormat.getType().getExtension());
    assertEquals(new Long(9338775), audioFileFormat.getProperty("duration"));
    assertEquals(411840, audioFileFormat.getFrameLength());
    final AudioFormat format = audioFileFormat.getFormat();
    assertEquals(44100f, format.getSampleRate(), 0);
    assertEquals(16, format.getSampleSizeInBits());
    assertEquals(2, format.getChannels());
    assertEquals("FLAC", format.getEncoding().toString());
}