@Test
public void testSetAudioEncoding()throws IllegalAccessException{

    pauseResumeAudioRecorder.setAudioEncoding(AudioFormat.ENCODING_PCM_8BIT);
    Assert.assertEquals("audio encoding is incorrect", AudioFormat.ENCODING_PCM_8BIT, audioEncodingField.get(pauseResumeAudioRecorder));
    pauseResumeAudioRecorder.setAudioEncoding(AudioFormat.ENCODING_PCM_16BIT);
    Assert.assertEquals("audio encoding is incorrect", AudioFormat.ENCODING_PCM_16BIT, audioEncodingField.get(pauseResumeAudioRecorder));
}