@Test
public void testDoGet_conditionalGet() throws Exception {

	// Given
	ClientSpanJavaScriptServlet clientSpanJavaScriptServlet = new ClientSpanJavaScriptServlet(mockServletPluginWithCacheTime(0));
	final MockHttpServletResponse response = new MockHttpServletResponse();
	// When
	clientSpanJavaScriptServlet.doGet(new MockHttpServletRequest(), response);
	final String etag = response.getHeader("etag");
	assertThat(etag).isNotNull();
	final MockHttpServletRequest conditionalGetRequest = new MockHttpServletRequest();
	conditionalGetRequest.addHeader("if-none-match", etag);
	final MockHttpServletResponse conditionalGetResponse = new MockHttpServletResponse();
	clientSpanJavaScriptServlet.doGet(conditionalGetRequest, conditionalGetResponse);
	// Then
	assertThat(conditionalGetResponse.getStatus()).isEqualTo(304);
	assertThat(conditionalGetResponse.getContentLength()).isZero();
}