assertSame(bc, context.getBundleContext());
}
public void testSetServletContextWOBundleContextWithParent() throws Exception {
servletContext = new MockServletContext();
BundleContext bc = new MockBundleContext();
ConfigurableOsgiBundleApplicationContext parent = new OsgiBundleXmlApplicationContext();
parent.setBundleContext(bc);
context.setParent(parent);
context.setServletContext(servletContext);
assertSame(servletContext, context.getServletContext());