/** * * * <ul> * <li><code>"OnewayRequest"="true"</code> client header * <li>Calling {@link ITestService#addTestPojoOneWay(TestPojo)} which returns a {@link Response} * and is annotated with {@link Oneway}. * </ul> */ @Test public void withHeaderOnewayResponseMethod() { final ITestService client = createJmsClient(true); final TestPojo testPojo = createTestPojo(123); final Response response = client.addTestPojoOneWay(testPojo); assertThat(response.getStatus(), is(202)); assertThat(WebClient.client(client).getResponse(), is(response)); }