### Question:
BaseRequestItem implements RequestItem { public String getAppId() { String appId = getParameter(APP_ID); if (appId != null && appId.equals(APP_SUBSTITUTION_TOKEN)) { return token.getAppId(); } else { return appId; } } BaseRequestItem(Map<String, String[]> parameters,
      SecurityToken token,
      BeanConverter converter,
      BeanJsonConverter jsonConverter);  BaseRequestItem(JSONObject parameters,
      Map<String, FormDataItem> formItems,
      SecurityToken token,
      BeanConverter converter,
      BeanJsonConverter jsonConverter); String getAppId(); Date getUpdatedSince(); String getSortBy(); SortOrder getSortOrder(); String getFilterBy(); int getStartIndex(); int getCount(); FilterOperation getFilterOperation(); String getFilterValue(); Set<String> getFields(); Set<String> getFields(Set<String> defaultValue); SecurityToken getToken(); T getTypedParameter(String parameterName, Class<T> dataTypeClass); T getOptionalTypedParameter(String parameterName, Class<T> dataTypeClass); T getTypedRequest(Class<T> dataTypeClass); String getParameter(String paramName); String getParameter(String paramName, String defaultValue); Map<String, Object> getParameters(); List<String> getListParameter(String paramName); @VisibleForTesting void setParameter(String paramName, Object paramValue); FormDataItem getFormMimePart(String partName); Object getAttribute(String val); void setAttribute(String val, Object obj); Set<String> getParameterNames();  }### Answer:
@Test public void testGetAppId() throws Exception { request.setParameter("appId", "100"); assertEquals("100", request.getAppId()); request.setParameter("appId", "@app"); assertEquals(FAKE_TOKEN.getAppId(), request.getAppId()); }