@Test(expected = IllegalStateException.class)
public void testSetSampleRateBadState()throws IllegalAccessException{

    PauseResumeAudioRecorder pauseResumeAudioRecorder=new PauseResumeAudioRecorder();
    currentAudioStateField.set(pauseResumeAudioRecorder, new AtomicInteger(PauseResumeAudioRecorder.RECORDING_STATE));
    pauseResumeAudioRecorder.setSampleRate(44100);
}