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

    PauseResumeAudioRecorder pauseResumeAudioRecorder=new PauseResumeAudioRecorder();
    currentAudioStateField.set(pauseResumeAudioRecorder, new AtomicInteger(PauseResumeAudioRecorder.RECORDING_STATE));
    pauseResumeAudioRecorder.setMaxFileSizeInBytes(1000L);
}