@Test
public void testReferringSameHostSite() throws Exception {

	final MockHttpServletRequest request = new MockHttpServletRequest("GET", "/test.js");
	request.addHeader("Referer", "https://www.myapp.com:8080/categories");
	request.setServerName("www.myapp.com");
	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);
	assertNull(mockSpan.tags().get("http.referring_site"));
}