@Test
public void testSetMaxTimeInMillis()throws IllegalAccessException{

    PauseResumeAudioRecorder pauseResumeAudioRecorder=new PauseResumeAudioRecorder();
    pauseResumeAudioRecorder.setMaxTimeInMillis(2000);
    Assert.assertEquals("remainingMaxTime incorrect", 2000, (long) remainingMaxTimeInMillisField.get(pauseResumeAudioRecorder));
    Assert.assertEquals("maxTime incorrect", 2000, (long) maxTimeInMillisField.get(pauseResumeAudioRecorder));
}