C3QueryUtils.extractJsonResults(
"{\"topic1\":[{\"endTimeSec\":1485991200,\"startTimeSec\":1485988200,\"totalBytes\":30000,\"totalCount\":3000}],"
+ "\"topic2\":[{\"endTimeSec\":1485991200,\"invalidCount\":0,\"maxLatencyFromCreation\":3750,\"meanLatencyFromCreation\":1576.2152157017917,\"p99LatencyFromCreation\":3529,\"startTimeSec\":1485988200,\"totalBytes\":3000000,\"totalCount\":1500}]}",
C3QueryUtils.extractJsonResults("", Arrays.asList("topic1", "topic2"), workloads);
Assert.assertTrue(workloads.isEmpty());
C3QueryUtils.extractJsonResults("{}", Arrays.asList("topic1", "topic2"), workloads);
Assert.assertTrue(workloads.isEmpty());
C3QueryUtils.extractJsonResults("{\"topic1\":[]}", Arrays.asList("topic1", "topic2"), workloads);
Assert.assertTrue(workloads.isEmpty());
C3QueryUtils.extractJsonResults(
"{\"topic1\":[{,\"startTimeSec\":1485988200,\"totalBytes\":30000,\"totalCount\":3000}],"
+ "\"topic2\":[{\"endTimeSec\":1485991200,\"invalidCount\":0,\"maxLatencyFromCreation\":3750,\"meanLatencyFromCreation\":1576.2152157017917,\"p99LatencyFromCreation\":3529,\"startTimeSec\":1485988200,\"totalBytes\":3000000,\"totalCount\":1500}]}",
C3QueryUtils.extractJsonResults(
"{\"topic1\":[{\"endTimeSec\":1485988200,\"startTimeSec\":1485988200,\"totalBytes\":30000,\"totalCount\":3000}],"
+ "\"topic2\":[{\"endTimeSec\":1485991200,\"invalidCount\":0,\"maxLatencyFromCreation\":3750,\"meanLatencyFromCreation\":1576.2152157017917,\"p99LatencyFromCreation\":3529,\"startTimeSec\":1485988200,\"totalBytes\":3000000,\"totalCount\":1500}]}",