@Test
public void checkClose() throws Exception {

    BundleContext bundleContext = createBundleContext();
    expect(bundleContext.getServiceReferences(eq(Authenticator.class.getName()), (String) isNull())).andReturn(null);
    bundleContext.removeServiceListener((ServiceListener) anyObject());
    replay(bundleContext);
    ServiceAuthenticationHttpContext ctx = createContext(bundleContext, "service-any");
    ctx.close();
}