private void assertContentType(HttpExchange httpExchange, String expectedType) {
		String contentType = httpExchange.getRequestHeaders()
				.getFirst(LibreTranslateStringTranslationService.CONTENT_TYPE_HEADER);
		contentType = Objects.requireNonNullElse(contentType, "missing");
		if (!expectedType.equals(contentType)) {
			fail("Content type incorrect: expected: %s, actual: %s".formatted(expectedType,
				contentType));
		}
	}
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