@Test
public void testSetChannel()throws IllegalAccessException{

    PauseResumeAudioRecorder pauseResumeAudioRecorder=new PauseResumeAudioRecorder();
    pauseResumeAudioRecorder.setChannel(AudioFormat.CHANNEL_IN_STEREO);
    Assert.assertEquals("Invalid channel config stereo",AudioFormat.CHANNEL_IN_STEREO,channelConfigField.get(pauseResumeAudioRecorder));
    pauseResumeAudioRecorder.setChannel(AudioFormat.CHANNEL_IN_MONO);
    Assert.assertEquals("Invalid channel config mono", AudioFormat.CHANNEL_IN_MONO, channelConfigField.get(pauseResumeAudioRecorder));
    pauseResumeAudioRecorder.setChannel(AudioFormat.CHANNEL_IN_DEFAULT);
    Assert.assertEquals("Invalid channel config default", AudioFormat.CHANNEL_IN_DEFAULT, channelConfigField.get(pauseResumeAudioRecorder));
}