@Test
public void testWeaselBeaconPageLoadBeacon_withSampledFlag() throws ServletException, IOException {

	// Given
	MockHttpServletRequest mockHttpServletRequest = new MockHttpServletRequest();
	mockHttpServletRequest.setParameter("t", "2d371455215c504");
	mockHttpServletRequest.setParameter("s", "2d371455215c504");
	mockHttpServletRequest.setParameter("ty", TYPE_PAGE_LOAD);
	// ignored
	mockHttpServletRequest.setParameter("sp", "0");
	mockHttpServletRequest.setParameter(METADATA_BACKEND_SPAN_SAMPLING_FLAG, "1");
	// When
	servlet.doGet(mockHttpServletRequest, new MockHttpServletResponse());
	// Then
	assertSoftly(softly -> {
		final List<MockSpan> finishedSpans = mockTracer.finishedSpans();
		softly.assertThat(finishedSpans).hasSize(1);
		MockSpan span = finishedSpans.get(0);
		softly.assertThat(span.tags())
				.containsEntry("id", "2d371455215c504")
				.containsEntry("trace_id", "2d371455215c504")
				.containsEntry(Tags.SAMPLING_PRIORITY.getKey(), 1);
	});
}