### Question:
HttpUtils { public static String getContentTypeFromContentTypeAndCharacterSetting(String rawContentType) { if (rawContentType.contains(";")) { return rawContentType.split(";")[0]; } else { return rawContentType; } }  static boolean isKeepAlive(HttpServerRequest request); static int getStatusFromResult(Result result, boolean success); static InputStream processResult(ServiceAccessor accessor, Context context, Renderable renderable,
                                            Result result); static String getContentTypeFromContentTypeAndCharacterSetting(String rawContentType); static boolean isPostOrPut(HttpServerRequest request); static final String CLOSE; static final String KEEP_ALIVE; }### Answer:
@Test public void testGetContentTypeFromContentTypeAndCharacterSetting() throws Exception { assertThat(HttpUtils.getContentTypeFromContentTypeAndCharacterSetting("application/json; charset=\"utf-8\"")) .isEqualTo("application/json"); assertThat(HttpUtils.getContentTypeFromContentTypeAndCharacterSetting("application/json")) .isEqualTo("application/json"); }