CmuEncoderFactory { public static SimpleEncoder createSimple() { return new SimpleEncoder(create()); }  static Encoder create(); static SimpleEncoder createSimple();  }
@Test public void shouldLoadEncoder() throws Exception { SimpleEncoder encoder = CmuEncoderFactory.createSimple(); String stephen = encoder.encodeBestAsSpaceString("stephen"); assertEquals("S T IY V AH N", stephen); List<String> pumps = encoder.encodeAsSpaceString("pumpernickel", 5); for (String pump : pumps) { log.info("Pump : " + pump); } }