### Question:
RestUtils { public static String getMimeHeaderValue(final Context serverContext, final String headerName) { final HttpContext httpContext = serverContext.asContext(HttpContext.class); final String headerValue = httpContext.getHeaderAsString(headerName); try { return headerValue == null ? null : MimeUtility.decodeText(headerValue); } catch (UnsupportedEncodingException ex) { if (debug.warningEnabled()) { debug.warning("Unable to decode mime header: " + ex); } return headerValue; } }  static String getCookieFromServerContext(Context context); static boolean isAdmin(Context context); static boolean isAdmin(Context context, String role); static void hasPermission(final Context context); static Promise<T, ResourceException> generateUnsupportedOperation(); static Promise<T, ResourceException> generateBadRequestException(); static Promise<T, ResourceException> generateBadRequestException(String msg); static Promise<T, ResourceException> generateNotFoundException(Request request); static StringBuilder getFullDeploymentURI(final String deploymentURL); static SSOToken getToken(); static String getMimeHeaderValue(final Context serverContext, final String headerName); static String getMimeHeaderValue(HttpServletRequest request, final String headerName);  }### Answer:
@Test(dataProvider = "getMimeHeaderValueData") public void shouldParseMimeHeaderValuesCorrectly(String[] values, String expectedResult) throws Exception { Context context = getHttpServerContext(values); String result = RestUtils.getMimeHeaderValue(context, HEADER); assertThat(result).isEqualTo(expectedResult); }