assertNotNull(newSpanId);
assertEquals(PARENT_TRACE_ID, newSpanId.getTraceId());
assertEquals(1l, newSpanId.getSpanId());
assertEquals(Long.valueOf(PARENT_SPAN_ID), newSpanId.getParentSpanId());
final Span expectedSpan = new Span();
expectedSpan.setTrace_id(PARENT_TRACE_ID);
expectedSpan.setId(1);
expectedSpan.setParent_id(PARENT_SPAN_ID);
expectedSpan.setName(REQUEST_NAME);
verify(mockState).sample();
verify(mockRandom, times(1)).nextLong();
verify(mockState).getCurrentServerSpan();
verify(mockState).setCurrentClientSpan(expectedSpan);