@After
 public void tearDown() throws Exception {
   recorder.stopRecording();
   driver.quit();
   String verificationErrorString = verificationErrors.toString();
   if (!"".equals(verificationErrorString)) {
     fail(verificationErrorString);
   }
 }
 public void stopRecording() {
   recorder.stopRecording();
   if (PreferenceManager.getInstance().getPreference(PreferenceManager.PLAY_PLAYBACK_KEY) == 1) {
     SoundMixer.getInstance().stopAllSoundInSoundMixerAndRewind();
   } else if (PreferenceManager.getInstance()
           .getPreference(PreferenceManager.METRONOM_VISUALIZATION_KEY)
       > 0) {
     SoundMixer.getInstance().stopMetronom();
   }
 }