RSMessageToClientManager extends MessageToClientManager<HttpSession> implements RSMessageToClientService { @Override public MessageToClient createMessageToClient(MessageFromClient message, HttpSession client) { return super.createMessageToClient(message, client); }  @Override Map<String, Object> getSessionBeans(HttpSession session); @Override MessageToClient createMessageToClient(MessageFromClient message, HttpSession client);  }
@Test public void testCreateMessageToClient() { System.out.println("createMessageToClient"); HttpSession session = mock(HttpSession.class); MessageFromClient mfc = mock(MessageFromClient.class); doReturn(null).when((MessageToClientManager) instance)._createMessageToClient(any(MessageFromClient.class), any(HttpSession.class)); MessageToClient mtc = instance.createMessageToClient(mfc, session); assertThat(mtc).isNull(); }