adapter.start();
RestTemplate template = new RestTemplate();
URI uri1 = new URI("http://localhost:" + port + "/test1");
URI uri2 = new URI("http://localhost:" + port + "/test2");
ResponseEntity<?> response1 = template.postForEntity(uri1, "foo", Object.class);
ResponseEntity<?> response2 = template.postForEntity(uri2, "bar", Object.class);
assertEquals(HttpStatus.OK, response1.getStatusCode());
assertEquals(HttpStatus.OK, response2.getStatusCode());
assertTrue(latch.await(1, TimeUnit.SECONDS));
// Ensure messages were received on the single thread with custom name
assertEquals(Collections.singleton("executor-test"), threadNames);