test_class.declarator: server = new RestxServerRule()
test_class.modifier: @ClassRule
      public static
test_class.original_string: @ClassRule
      public static RestxServerRule server = new RestxServerRule();
test_class.type: RestxServerRule
test_class.var_name: server
test_class.file: restx-samplest/src/test/java/samplest/core/PolymorphicResourceTest.java
test_class.identifier: PolymorphicResourceTest
test_case.body: @Test
      public void should_post_B() throws Exception {
          HttpRequest httpRequest = server.client().authenticatedAs("admin")
                  .POST("/api/polymorphic")
                  .contentType("application/json")
                  .send("{\"@class\":\".PolymorphicResource$B\",\"a\":\"a3\",\"b\":\"b\"}");
          assertThat(httpRequest.code()).isEqualTo(200);
          assertThat(httpRequest.body().trim()).isEqualTo("{\n" +
                  "  \"@class\" : \".PolymorphicResource$B\",\n" +
                  "  \"a\" : \"a3\",\n" +
                  "  \"b\" : \"b\"\n" +
                  "}");
      }
test_case.class_method_signature: PolymorphicResourceTest.should_post_B()
test_case.full_signature: @Test public void should_post_B()
test_case.identifier: should_post_B
test_case.invocations: send contentType POST authenticatedAs client isEqualTo assertThat code isEqualTo assertThat trim body
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_post_B()
focal_class.file: restx-samplest/src/main/java/samplest/core/PolymorphicResource.java
focal_class.identifier: PolymorphicResource
focal_class.class_method_signature: PolymorphicResource.bytype(String type)
focal_class.full_signature: @GET("/polymorphic/single/{type}") public A bytype(String type)
focal_class.identifier: bytype
focal_class.modifiers: @GET("/polymorphic/single/{type}") public
focal_class.parameters: (String type)
focal_class.return: A
focal_class.signature: A bytype(String type)
focal_class.class_method_signature: PolymorphicResource.findAllByType(String type)
focal_class.full_signature: @GET("/polymorphic/list/{type}") public Iterable<A> findAllByType(String type)
focal_class.identifier: findAllByType
focal_class.modifiers: @GET("/polymorphic/list/{type}") public
focal_class.parameters: (String type)
focal_class.return: Iterable<A>
focal_class.signature: Iterable<A> findAllByType(String type)
focal_class.class_method_signature: PolymorphicResource.post(A a)
focal_class.full_signature: @POST("/polymorphic") public A post(A a)
focal_class.identifier: post
focal_class.modifiers: @POST("/polymorphic") public
focal_class.parameters: (A a)
focal_class.return: A
focal_class.signature: A post(A a)
focal_method.body: @POST("/polymorphic")
      public A post(A a) {
          return a;
      }
focal_method.class_method_signature: PolymorphicResource.post(A a)
focal_method.full_signature: @POST("/polymorphic") public A post(A a)
focal_method.identifier: post
focal_method.modifiers: @POST("/polymorphic") public
focal_method.parameters: (A a)
focal_method.return: A
focal_method.signature: A post(A a)