### Question:
RestEndpointServlet extends HttpServlet { @Override public void destroy() { restletXACMLHttpServlet.destroy(); restletXACMLServiceServlet.destroy(); restletOAuth2ServiceServlet.destroy(); restletUMAServiceServlet.destroy(); } RestEndpointServlet();   RestEndpointServlet(
            RestletServiceServlet restletXACMLServiceServlet,
            RestletServiceServlet restletOAuth2ServiceServlet,
            RestletServiceServlet restletUMAServiceServlet,
            HttpServlet restletXACMLHttpServlet,
            Filter authenticationFilter); @Override void init(); @Override void destroy();  }### Answer:
@Test public void shouldCallDestroy() { restEndpointServlet.destroy(); verify(restletXACMLServiceServlet).destroy(); verify(restletOAuth2ServiceServlet).destroy(); verify(restletUMAServiceServlet).destroy(); }