@Test
  public void testExtractFeaturesExtractsFeaturesCorrectly() {
    Word w = new Word(4.3, 5, "word");
    regions.add(w);

    WavReader reader = new WavReader();

    WavData wav = null;
    try {
      wav = reader.read(TEST_DIR + "/bdc-test.wav");
    } catch (UnsupportedAudioFileException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    } catch (AuToBIException e) {
      e.printStackTrace();
    }
    w.setAttribute("wav", wav);
    try {
      fe.extractFeatures(regions);
      Region syl = (Region) w.getAttribute("syl");
      // Don't worry about the specific region, but make sure that there is overlap.
      // Different pseudosyllabification algorithms will yield different hypotheses here
      // this test shouldn't break if the internal algorithms is modified.
      assertTrue("Syllable does not overlap the word", syl.getEnd() > w.getStart() && syl.getStart() < w.getEnd());
    } catch (FeatureExtractorException e) {
      fail();
    }
  }