@Test
public void testNumberFormatExceptionCreateSpan() throws Exception {

	final MockHttpServletRequest request = new MockHttpServletRequest("GET", "/test.js");
	request.addHeader("spanid", "<script>alert(1);</script>");
	request.addHeader("traceid", "42");
	final MonitoredHttpRequest monitoredHttpRequest = createMonitoredHttpRequest(request);
	Span span = monitoredHttpRequest.createSpan();
	Scope scope = tracer.scopeManager().activate(span);
	span.finish();
	scope.close();
	assertEquals(1, tracer.finishedSpans().size());
	final MockSpan mockSpan = tracer.finishedSpans().get(0);
	assertEquals("/test.js", mockSpan.tags().get(Tags.HTTP_URL.getKey()));
	assertEquals("GET *.js", mockSpan.operationName());
	assertEquals("GET", mockSpan.tags().get("method"));
	assertFalse(mockSpan.tags().containsKey(Tags.ERROR.getKey()));
}