@Test public void testGetAllCallOperations_withoutTargetAndMethodName() { String json = "{ \"head\" : {}, \"operations\" : [" + "[ \"set\", \"w3\", { \"count\" : 1 } ]," + "[ \"call\", \"w3\", \"foo\", { \"count\" : 2 } ]," // <--- + "[ \"call\", \"w4\", \"bar\", { \"count\" : 3 } ]" // <--- + "] }"; ClientMessage message = new ClientMessage(JsonObject.readFrom(json)); List<CallOperation> operations = message.getAllCallOperationsFor(null, null); assertEquals(2, operations.size()); assertEquals(2, operations.get(0).getParameters().get("count").asInt()); assertEquals(3, operations.get(1).getParameters().get("count").asInt()); }