title: How to use dynamic parameter name in java method?
body: <p>first of all i have method like this ;</p>
  <pre><code>@When(&quot;^I send google-login-api with \&quot;([^\&quot;]*)\&quot; token$&quot;)
      public void googleLoginApi(String googleTokenSuccess) throws IOException {
  
          String body = new String(Files.readAllBytes(Paths.get(&quot;src/test/resources/config/environments/googleLogin.json&quot;)));
          JSONObject jsonObject = new JSONObject(body);
  
          String googleToken = token.getString(googleTokenSuccess);
          jsonObject.put(&quot;token&quot;,googleToken);
  
  
  
          response = RestAssured.given()
                  .baseUri(prp_url)
                  .accept(&quot;application/json&quot;)
                  .contentType(&quot;application/json&quot;)
                  .queryParam(&quot;rememberMe&quot;,&quot;true&quot;)
                  .body(jsonObject.toString())
                  .when()
                  .post(&quot;/auth/google&quot;)
                  .then().assertThat().extract().response();
      }
  </code></pre>
  <p>And i call this method in gherkin style ;</p>
  <pre><code>  Scenario: 3AF GoogleLoginSuccess
      When I send google-login-api with &quot;google token success&quot; token
      Then response status code should be 200
      Then response body &quot;deviceInfo.name&quot; is in &quot;Firefox, Windows 10&quot;
  </code></pre>
  <p>When I call token with different names in the BDD structure(<code>When I send google-login-api with &quot;google token success&quot; token</code>), I want the method parameter name to change as well. For example when i call xyz token with BDD style, method parameter String googleTokenSuccess paramater is equal to xyz.</p>