@Test
public void test_HttpContextHolder()
{
TestCase.assertNotNull(sampleContext);
final HttpContextHolder h1 = new HttpContextHolder(sampleContext);
TestCase.assertSame(sampleContext, h1.getContext());
TestCase.assertTrue(h1.getMappings().isEmpty());
ServletMapping sm = new ServletMapping(bundle1, null, "");
h1.addMapping(sm);
TestCase.assertSame(sampleContext, sm.getContext());
TestCase.assertEquals(1, h1.getMappings().size());
TestCase.assertTrue(h1.getMappings().contains(sm));
h1.removeMapping(sm);
TestCase.assertNull(sm.getContext());
TestCase.assertTrue(h1.getMappings().isEmpty());
}