MaryCache { public byte[] lookupAudio(String inputtype, String locale, String voice, String inputtext) throws SQLException { return lookupAudio(inputtype, locale, voice, null, null, null, inputtext); } MaryCache(File cacheFile, boolean clearCache); static MaryCache getCache(); static boolean haveCache(); void insertText(String inputtype, String outputtype, String locale, String voice, String inputtext, String outputtext); synchronized void insertText(String inputtype, String outputtype, String locale, String voice, String outputparams, String style, String effects, String inputtext, String outputtext); void insertAudio(String inputtype, String locale, String voice, String inputtext, byte[] audio); synchronized void insertAudio(String inputtype, String locale, String voice, String outputparams, String style, String effects, String inputtext, byte[] audio); String lookupText(String inputtype, String outputtype, String locale, String voice, String inputtext); synchronized String lookupText(String inputtype, String outputtype, String locale, String voice, String outputparams, String style, String effects, String inputtext); byte[] lookupAudio(String inputtype, String locale, String voice, String inputtext); synchronized byte[] lookupAudio(String inputtype, String locale, String voice, String outputparams, String style, String effects, String inputtext); void shutdown(); static void main(String[] args);  }
@Test public void lookupAudio() throws Exception { byte[] lookupAudio = c.lookupAudio(inputtype, locale, voice, inputtext); assertNotNull(lookupAudio); assertArrayEquals(targetAudio, lookupAudio); }