testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/CompletionStageResponseTest.java
@Test
   public void testResponseTestClass() throws Exception
   {
      Invocation.Builder request = client.target(generateURL("/responsetestclass")).request();
      Response response = request.get();
      String entity = response.readEntity(String.class);
      Assert.assertEquals(200, response.getStatus());
      Assert.assertEquals("abc/xyz", response.getHeaderString("Content-Type"));
      Assert.assertEquals("pdq", entity);
   }
/**
    * @tpTestDetails Resource method returns CompletionStage<Response>, where the Response
    * emtity is a CompletionStageResponseTestClass, and where
    * CompletionStageResponseTestClass is handled by CompletionStageResponseMessageBodyWriter,
    * which has annotation @Produces("abc/xyz").
    * @tpSince RESTEasy 3.5
    */
@tpTestDetails Resource method returns CompletionStage, where the Response
emtity is a CompletionStageResponseTestClass, and where
CompletionStageResponseTestClass is handled by CompletionStageResponseMessageBodyWriter,
which has annotation @Produces("abc/xyz").
@tpTestDetails Resource method returns CompletionStage where the Response emtity is a CompletionStageResponseTestClass and where CompletionStageResponseTestClass is handled by CompletionStageResponseMessageBodyWriter which has annotation @Produces ( " abc / xyz " ) .
@Test
   public void testResponseTestClass() throws Exception
   {
      Invocation.Builder request = client.target(generateURL("/responsetestclass")).request();
      Response response = request.get();
      String entity = response.readEntity(String.class);
      Assert.assertEquals(200, response.getStatus());
      Assert.assertEquals("abc/xyz", response.getHeaderString("Content-Type"));
      Assert.assertEquals("pdq", entity);
   }
@ Test public void testResponseTestClass ( ) throws Exception { Invocation . Builder request = client . target ( generateURL ( "/responsetestclass" ) ) . request ( ) ; Response response = request . get ( ) ; String entity = response . readEntity ( String . class ) ; Assert . assertEquals ( 200 , response . getStatus ( ) ) ; Assert . assertEquals ( "abc/xyz" , response . getHeaderString ( "Content-Type" ) ) ; Assert . assertEquals ( "pdq" , entity ) ; }
@tpTestDetails Resource method returns CompletionStage<Response>, where the Response
 emtity is a CompletionStageResponseTestClass, and where
 CompletionStageResponseTestClass is handled by CompletionStageResponseMessageBodyWriter,
 which has annotation @Produces("abc/xyz").
@tpTestDetails Resource method returns CompletionStage<Response > where the Response emtity is a CompletionStageResponseTestClass and where CompletionStageResponseTestClass is handled by CompletionStageResponseMessageBodyWriter which has annotation @Produces ( " abc / xyz " ) .