@Test
public void testSetSampleRate()throws IllegalAccessException{

    PauseResumeAudioRecorder pauseResumeAudioRecorder=new PauseResumeAudioRecorder();
    pauseResumeAudioRecorder.setSampleRate(22050);
    Assert.assertEquals("Sample rate is incorrect 22050", 22050, sampleRateInHertzField.get(pauseResumeAudioRecorder));
    pauseResumeAudioRecorder.setSampleRate(16000);
    Assert.assertEquals("Sample rate is incorrect 16000", 16000, sampleRateInHertzField.get(pauseResumeAudioRecorder));
    pauseResumeAudioRecorder.setSampleRate(11025);
    Assert.assertEquals("Sample rate is incorrect 11025", 11025, sampleRateInHertzField.get(pauseResumeAudioRecorder));
    pauseResumeAudioRecorder.setSampleRate(44100);
    Assert.assertEquals("Sample rate is incorrect 44100", 44100, sampleRateInHertzField.get(pauseResumeAudioRecorder));
}