diff --git a/examples/rest-assured-itest-java/src/test/java/com/jayway/restassured/itest/java/ContentTypeITest.java b/examples/rest-assured-itest-java/src/test/java/com/jayway/restassured/itest/java/ContentTypeITest.java
index <HASH>..<HASH> 100644
--- a/examples/rest-assured-itest-java/src/test/java/com/jayway/restassured/itest/java/ContentTypeITest.java
+++ b/examples/rest-assured-itest-java/src/test/java/com/jayway/restassured/itest/java/ContentTypeITest.java
@@ -208,4 +208,14 @@ public class ContentTypeITest extends WithJetty {
         then().
                 contentType(ContentType.TEXT.withCharset(config().getEncoderConfig().defaultContentCharset()));
     }
+
+    @Test public void
+    headerWithContentTypeEnumWorks() throws Exception {
+        given().
+                header("Content-Type", ContentType.JSON).
+        when().
+                post("/returnContentTypeAsBody").
+        then().
+                body(equalTo(ContentType.JSON.withCharset(config().getEncoderConfig().defaultContentCharset())));
+    }
 }
Added test to verify that contenttype enum can be supplied as a header