@Test
public void testWithRequestParamsDynamicHeaderOption() {

  String encodedRequestParams = "param1=value&param2.param3=value23";
  GrpcCallContext context =
      GrpcCallContext.createDefault().withRequestParamsDynamicHeaderOption(encodedRequestParams);
  Map<Key<String>, String> headers =
      CallOptionsUtil.getDynamicHeadersOption(context.getCallOptions());
  assertEquals(
      ImmutableMap.of(CallOptionsUtil.REQUEST_PARAMS_HEADER_KEY, encodedRequestParams), headers);
}