    @Test
    public void testContextMissingInResponse() {

        HttpServletNetworkRequestEvent requestEvent = new HttpServletNetworkRequestEvent(ORIGIN, 1, 1, "test", "test");
        HttpServletNetworkResponseEvent responseEvent = new HttpServletNetworkResponseEvent(ORIGIN, requestEvent);

        // Explicitly clear context
        AWSXRay.clearTraceEntity();
        Assert.assertNull(AWSXRay.getTraceEntity());

        // Verifies no NPEs or similar are thrown
        servletHandler.handleResponse(responseEvent);
    }