### Question:
OAuth2HandlerModule extends AbstractModule { @Provides @Singleton public static List<AuthorizationEndpointResponseHandler> provideAuthorizationEndpointResponseHandlers( final CodeAuthorizationResponseHandler codeAuthorizationResponseHandler) { return ImmutableList .of((AuthorizationEndpointResponseHandler) codeAuthorizationResponseHandler); }  @Provides @Singleton static List<AuthorizationEndpointResponseHandler> provideAuthorizationEndpointResponseHandlers(
          final CodeAuthorizationResponseHandler codeAuthorizationResponseHandler); @Provides @Singleton static List<ClientAuthenticationHandler> provideClientAuthenticationHandlers(
          final BasicAuthenticationHandler basicAuthenticationHandler,
          final StandardAuthenticationHandler standardAuthenticationHandler); @Provides @Singleton static List<GrantRequestHandler> provideGrantRequestHandlers(
          final ClientCredentialsGrantTypeHandler clientCredentialsGrantTypeHandler,
          final CodeGrantTypeHandler codeGrantTypeHandler); @Provides @Singleton static List<TokenEndpointResponseHandler> provideTokenEndpointResponseHandlers(
          final TokenAuthorizationResponseHandler tokenAuthorizationResponseHandler); @Provides @Singleton static List<ResourceRequestHandler> provideTokenHandlers(
          final BearerTokenHandler bearerTokenHandler, final MacTokenHandler macTokenHandler);  }### Answer:
@Test @SuppressWarnings({ "unchecked", "unused" }) public void testProvideAuthorizationEndpointResponseHandlers_1() throws Exception { final OAuth2HandlerModule fixture = new OAuth2HandlerModule(); final CodeAuthorizationResponseHandler codeAuthorizationResponseHandler = new CodeAuthorizationResponseHandler( EasyMock.createNiceMock(Provider.class), EasyMock.createNiceMock(List.class), EasyMock.createNiceMock(List.class), EasyMock.createNiceMock(HttpFetcher.class)); final TokenAuthorizationResponseHandler tokenAuthorizationResponseHandler = new TokenAuthorizationResponseHandler( EasyMock.createNiceMock(Provider.class), EasyMock.createNiceMock(OAuth2Store.class)); final List<AuthorizationEndpointResponseHandler> result = OAuth2HandlerModule .provideAuthorizationEndpointResponseHandlers(codeAuthorizationResponseHandler); Assert.assertNotNull(result); Assert.assertEquals(1, result.size()); }