    @Test
    public void testGetAudioInputStreamWithUnsupportedFile() throws IOException {

        final FlacAudioFileReader flacAudioFileReader = new FlacAudioFileReader();
        final File file = File.createTempFile("flacTest", ".wav");
        final OutputStream out = new FileOutputStream(file);
        out.write(new byte[2048]);
        out.close();
        try {
            flacAudioFileReader.getAudioInputStream(file);
            fail("Expected UnsupportedAudioFileException");
        } catch (UnsupportedAudioFileException e) {
            // expected this
        } finally {
            file.delete();
        }
    }