undertest.flushResult = new SimpleFuture<>(false);
assertFalse(undertest.flush(20000L));
}
@Test
public void testGenerateTraceURL() throws Exception {
<BUG>String spanId = "span789";
StubTracer undertest = createTracer(VERBOSITY_ERRORS_ONLY);</BUG>
String result = undertest.generateTraceURL(spanId);
String expectedUrlStart = "https://app.lightstep.com/" + ACCESS_TOKEN + "/trace?span_guid="
<BUG>+ spanId + "&at_micros=";
assertTrue("Unexpected trace url: " + result, result.startsWith(expectedUrlStart));</BUG>
}

undertest.flushResult = new SimpleFuture<>(false);
assertFalse(undertest.flush(20000L));
}
@Test
public void testGenerateTraceURL() throws Exception {
long spanId = 3;
StubTracer undertest = createTracer(VERBOSITY_ERRORS_ONLY);
String result = undertest.generateTraceURL(spanId);
String expectedUrlStart = "https://app.lightstep.com/" + ACCESS_TOKEN + "/trace?span_guid="
+ Long.toHexString(spanId) + "&at_micros=";
assertTrue("Unexpected trace url: " + result, result.startsWith(expectedUrlStart));
}
