[java][bidi] Avoid nested lists when sending single browsing context
@@ -84,7 +84,7 @@ public void disconnectSession() {
Require.nonNull("Handler to call", handler);
send(new Command<>("session.subscribe",
- ImmutableMap.of("contexts", Collections.singletonList(browsingContextIds),
+ ImmutableMap.of("contexts", browsingContextIds,
"events", Collections.singletonList(event.getMethod()))));
connection.addListener(event, handler);
