@Test
public void shouldMatchPerlTestCases() throws Exception {

  ImmutableMap<String, Integer> tests = ImmutableMap.<String, Integer>builder()
      .put("hoopty        ", 2)
      .put("bah           ", 1)
      .put("I             ", 1)
      .put("A             ", 1)
      .put("organism      ", 4)
      .put("organisms     ", 4)
      .put("antagonisms   ", 5)
      .put("schisms       ", 2)
      .put("monisms       ", 3)
      .put("puritanisms   ", 5)
      .put("criticisms    ", 4)
      .put("microorganisms", 6)
      .put("surrealisms   ", 4)
      .put("isms          ", 2)
      .put("aphorisms     ", 4)
      .put("prisms        ", 2)
      .put("anachronisms  ", 5)
      .put("dualisms      ", 4)
      .put("euphemisms    ", 4)
      .put("mechanisms    ", 4)
      .put("mannerisms    ", 4)
      .put("yogiisms      ", 4)
      .put("metabolisms   ", 5)
      .put("baptisms      ", 3)
      .put("embolisms     ", 4)
      .put("methodisms    ", 4)
      .put("executed      ", 4)
      .put("accused       ", 2)
      .put("dosed         ", 1)
      .build();
  for (Map.Entry<String, Integer> entry : tests.entrySet()) {
    String word = entry.getKey().trim();
    assertEquals(word + " bad", (int)entry.getValue(), RuleSyllabifier.syllable(word));
  }
}