@Test
public void testSetAudioFile()throws IllegalAccessException{

    pauseResumeAudioRecorder.setAudioFile("/recording.wav");
    Assert.assertEquals("Wrong state was set", PauseResumeAudioRecorder.PREPARED_STATE, pauseResumeAudioRecorder.getCurrentState());
    Assert.assertEquals("Wrong audio file was set", audioFileField.get(pauseResumeAudioRecorder), "/recording.temp");
    pauseResumeAudioRecorder.setAudioFile("/recording");
    Assert.assertEquals("Wrong audio file was set", audioFileField.get(pauseResumeAudioRecorder), "/recording.temp");
}