@Test
public void testPauseRecordingWhilePaused()throws IllegalAccessException{

    //make sure calling pause while paused does not result in a crash.
    PauseResumeAudioRecorder pauseResumeAudioRecorder=new PauseResumeAudioRecorder();
    currentAudioStateField.set(pauseResumeAudioRecorder, new AtomicInteger(PauseResumeAudioRecorder.PAUSED_STATE));
    pauseResumeAudioRecorder.pauseRecording();
    new File(Environment.getExternalStorageDirectory() + "/recording.pcm").delete();
}