assertThat(sockJSSession.getAllMessages().size(), is(1));
}
@Test
public void addMessages() throws Exception {
final SockJsService service = mock(SockJsService.class);
final SockJsSession sockJSSession = new SockJsSession("123", service);
sockJSSession.addMessages(new String[]{"hello", "world"});
final List<String> messages = sockJSSession.getAllMessages();
assertThat(messages.size(), is(2));
assertThat(messages.get(0), equalTo("hello"));