@Test
    public void testGetWithTwoTags() {
        int limit = THREAD_COUNT;        // TODO How to set this?
        queryParameters.put("limit", Arrays.asList(String.valueOf(limit)));
        // TODO pick iteration and pod at random
        queryParameters.put("tag", Arrays.asList("iteration:1", "podname:" + workerPodNames.get(0)));
        logger.info("Query parameters: " + queryParameters.size());
        List<Datum> traces = simpleRestClient.getTraces(queryParameters, limit);
        Instant testEndTime = Instant.now();
        long duration = Duration.between(testStartTime, testEndTime).toMillis();
        logger.info("Retrieval of " + limit + " spans in testGetWithTwoTags took " + numberFormat.format(duration) + " milliseconds");
        assertNotNull(traces);
        assertEquals(limit, traces.size());
        // TODO add more validation
    }
@Test
    public void testGetWithTwoTags() {
        int limit = THREAD_COUNT;       
        queryParameters.put("limit", Arrays.asList(String.valueOf(limit)));
       
        queryParameters.put("tag", Arrays.asList("iteration:1", "podname:" + workerPodNames.get(0)));
        logger.info("Query parameters: " + queryParameters.size());
        List<Datum> traces = simpleRestClient.getTraces(queryParameters, limit);
        Instant testEndTime = Instant.now();
        long duration = Duration.between(testStartTime, testEndTime).toMillis();
        logger.info("Retrieval of " + limit + " spans in testGetWithTwoTags took " + numberFormat.format(duration) + " milliseconds");
        assertNotNull(traces);
        assertEquals(limit, traces.size());
       
    }
@test public void testgetwithtwotags() { int limit = thread_count; queryparameters.put("limit", arrays.aslist(string.valueof(limit))); queryparameters.put("tag", arrays.aslist("iteration:1", "podname:" + workerpodnames.get(0))); logger.info("query parameters: " + queryparameters.size()); list<datum> traces = simplerestclient.gettraces(queryparameters, limit); instant testendtime = instant.now(); long duration = duration.between(teststarttime, testendtime).tomillis(); logger.info("retrieval of " + limit + " spans in testgetwithtwotags took " + numberformat.format(duration) + " milliseconds"); assertnotnull(traces); assertequals(limit, traces.size()); }