@Test
public void multipleMessages() throws Exception {

  List<SimpleModel> messages = createMessages(3);
  stubFor(post(urlEqualTo("/onramp/v1/roads/" + TEST_ROAD + "/messages")).withBasicAuth("user", "pass").willReturn(
      aResponse().withStatus(HttpStatus.SC_OK).withBody(createStubResponse(3, true, "accepted: "))));
  List<StandardResponse> responses = underTest.sendMessages(messages);
  assertThat(responses.get(0).isSuccess(), is(true));
  assertThat(responses.get(0).getTimestamp(), is(100L));
  assertThat(responses.get(0).getMessage(), is("accepted: 0"));
  assertThat(responses.get(1).isSuccess(), is(true));
  assertThat(responses.get(1).getTimestamp(), is(101L));
  assertThat(responses.get(1).getMessage(), is("accepted: 1"));
  assertThat(responses.get(2).isSuccess(), is(true));
  assertThat(responses.get(2).getTimestamp(), is(102L));
  assertThat(responses.get(2).getMessage(), is("accepted: 2"));
}