### Question:
OAuth2HandlerModule extends AbstractModule { @Provides @Singleton public static List<GrantRequestHandler> provideGrantRequestHandlers( final ClientCredentialsGrantTypeHandler clientCredentialsGrantTypeHandler, final CodeGrantTypeHandler codeGrantTypeHandler) { return ImmutableList.of(clientCredentialsGrantTypeHandler, codeGrantTypeHandler); }  @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 testProvideGrantRequestHandlers_1() throws Exception { final OAuth2HandlerModule fixture = new OAuth2HandlerModule(); final ClientCredentialsGrantTypeHandler clientCredentialsGrantTypeHandler = new ClientCredentialsGrantTypeHandler( EasyMock.createNiceMock(List.class)); final CodeGrantTypeHandler codeGrantTypeHandler = new CodeGrantTypeHandler(); final List<GrantRequestHandler> result = OAuth2HandlerModule.provideGrantRequestHandlers( clientCredentialsGrantTypeHandler, codeGrantTypeHandler); Assert.assertNotNull(result); Assert.assertEquals(2, result.size()); }