.consumes(JSON)
.produces(MediaType.JSON)
.to(SampleController.class).save(param(Car.class));
}
}).requestMethod(POST).acceptHeader(JSON).body("{\"color\":\"red\", \"brand\":\"mini\"}");
final InvocationResult invocationResult = routeTester.contentType("invalid/type").processPostRequest("/cars");
assertThat(invocationResult.getResult()).isInstanceOf(RuntimeException.class);
}
@Test
public void testOrderMultipleAcceptHeaders() throws Exception {