@Test(expected = IllegalArgumentException.class)
public void test_add_exception_on_null_socket() {

    final SocketIoAdapter adapter = ADAPTER_FACTORY.createAdapter(null);
    adapter.add("foo", null);
}