### Question:
RequestUtil { public static String getAppName(HttpServletRequest request) { return request.getHeader(CLIENT_APPNAME_HEADER); }  static String getRemoteIp(HttpServletRequest request); static String getAppName(HttpServletRequest request); static final String CLIENT_APPNAME_HEADER; }### Answer:
@Test public void getAppName() { HttpServletRequest request = Mockito.mock(HttpServletRequest.class); Mockito.when(request.getHeader(eq(RequestUtil.CLIENT_APPNAME_HEADER))).thenReturn("test"); Assert.assertEquals(RequestUtil.getAppName(request), "test"); }