@Test
	public void testLanguagesRequest() throws IOException, CancelledException {
		HttpServer server = createMockHttpServer();
		server.createContext("/languages", this::mockLangHandler);
		try {
			server.start();
			LibreTranslateStringTranslationService sts = new LibreTranslateStringTranslationService(
				getURI(server.getAddress()), null, AUTO, "en", 100, 1000, 1000);

			List<SupportedLanguage> langs = sts.getSupportedLanguages(TaskMonitor.DUMMY);
			assertEquals(supportedLanguageCount, langs.size());
		}
		finally {
			server.stop(0);
		}
	}
Tests the LibreTranslateStringTranslationService by creating a mock HTTP server that responds
to the minimal requests the service needs.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/string/translate/libretranslate/LibreTranslateStringTranslationServiceTest.java