@Test
public void testSendEventSourceMessages() throws Exception {
StubConnection target = new StubConnection(new StubHttpRequest());
EventSourceMessage message = new EventSourceMessage("dummy\ndata");
target.send(message);
List<String> expected = new ArrayList<String>();
expected.add("data: dummy\ndata: data\n\n");
assertEquals(expected, target.sentMessages());