diff --git a/Tests/Entity/Parameters/BodyParameterTest.php b/Tests/Entity/Parameters/BodyParameterTest.php
index <HASH>..<HASH> 100644
--- a/Tests/Entity/Parameters/BodyParameterTest.php
+++ b/Tests/Entity/Parameters/BodyParameterTest.php
@@ -55,7 +55,7 @@ class BodyParameterTest extends \PHPUnit_Framework_TestCase
     public function testSerialization()
     {
         $data = json_encode([
-            'in'          => 'body',
+            'in'          => AbstractParameter::IN_BODY,
             'name'        => 'foo',
             'description' => 'bar',
             'required'    => false,
Converted to using class constant in body serialization test