title: Don't know how to convert "Recipe4" into edu.ncsu.csc326.coffeemaker.Recipe
body: <p>My feature file scenario is this:</p>
  <pre><code>When Recipe4 is added to the recipe book
  </code></pre>
  <p>And the corresponding StepDef is this :</p>
  <pre><code>@When(&quot;^(.*) is added to the recipe book$&quot;)
  public void addRecipeTest(Recipe recipe) throws RecipeException {
      //Set up 
              
              recipe = new Recipe();
              recipe.setName(&quot;Hot Chocolate&quot;);
              recipe.setAmtChocolate(&quot;4&quot;);
              recipe.setAmtCoffee(&quot;0&quot;);
              recipe.setAmtMilk(&quot;1&quot;);
              recipe.setAmtSugar(&quot;1&quot;);
              recipe.setPrice(&quot;65&quot;);
          
              assertEquals(true,coffeeMaker.addRecipe(recipe));
              assertEquals(coffeeMakerMain.getMode(),Mode.WAITING);
              System.out.println(&quot;Recipe is added&quot;);
  }
  </code></pre>
  <p>I am trying to see if i can get my code to accept the regular expression as a (Recipe)class object but I am getting this error:</p>
  <pre><code>cucumber.runtime.CucumberException: Don't know how to convert &quot;Recipe4&quot; into edu.ncsu.csc326.coffeemaker.Recipe.
  </code></pre>
  <p>Can someone please tell me what I am doing wrong?</p>