@Test(expected = PagSeguroLibException.class) public void shouldThrowsErrorLibOnRegister() throws Exception { when(httpClient.execute(any(HttpMethod.class), anyString(), anyMap(), any(HttpRequestBody.class))).thenThrow(new IOException()); authorizationsResource.register(authorizationRegistration); }
public RegisteredAuthorization register( Builder<AuthorizationRegistration> authorizationRegistrationBuilder) { return register(authorizationRegistrationBuilder.build()); }
AuthorizationsResource { public RegisteredAuthorization register( Builder<AuthorizationRegistration> authorizationRegistrationBuilder) { return register(authorizationRegistrationBuilder.build()); } }
AuthorizationsResource { public RegisteredAuthorization register( Builder<AuthorizationRegistration> authorizationRegistrationBuilder) { return register(authorizationRegistrationBuilder.build()); } AuthorizationsResource(PagSeguro pagSeguro, HttpClient httpClient); }
AuthorizationsResource { public RegisteredAuthorization register( Builder<AuthorizationRegistration> authorizationRegistrationBuilder) { return register(authorizationRegistrationBuilder.build()); } AuthorizationsResource(PagSeguro pagSeguro, HttpClient httpClient); RegisteredAuthorization register(
        Builder<AuthorizationRegistration> authorizationRegistrationBuilder); RegisteredAuthorization register(AuthorizationRegistration authorizationRegistration); RegisteredAuthorization registerWithSuggestion(AuthorizationRegistration authorizationRegistration); AuthorizationSearchResource search(); }
AuthorizationsResource { public RegisteredAuthorization register( Builder<AuthorizationRegistration> authorizationRegistrationBuilder) { return register(authorizationRegistrationBuilder.build()); } AuthorizationsResource(PagSeguro pagSeguro, HttpClient httpClient); RegisteredAuthorization register(
        Builder<AuthorizationRegistration> authorizationRegistrationBuilder); RegisteredAuthorization register(AuthorizationRegistration authorizationRegistration); RegisteredAuthorization registerWithSuggestion(AuthorizationRegistration authorizationRegistration); AuthorizationSearchResource search();  }