### Question:
OAuth1CredentialProvider extends BaseCredentialProvider { @Override public AcquisitionMethod acquisitionMethod() { return new AcquisitionMethod.Builder() .label(labelFor(id)) .icon(iconFor(id)) .type(Type.OAUTH1) .description(descriptionFor(id)) .configured(configured) .build(); } OAuth1CredentialProvider(final String id);  OAuth1CredentialProvider(final String id, final OAuth1ConnectionFactory<A> connectionFactory,
        final Applicator<OAuthToken> applicator); private  OAuth1CredentialProvider(final String id, final OAuth1ConnectionFactory<A> connectionFactory,
        final Applicator<OAuthToken> applicator, final boolean configured); @Override AcquisitionMethod acquisitionMethod(); @Override Connection applyTo(final Connection connection, final CredentialFlowState givenFlowState); @Override CredentialFlowState finish(final CredentialFlowState givenFlowState, final URI baseUrl); @Override String id(); @Override CredentialFlowState prepare(final String connectorId, final URI baseUrl, final URI returnUrl);  }### Answer:
@Test public void shouldCreateAcquisitionMethod() { @SuppressWarnings("unchecked") final OAuth1CredentialProvider<?> oauth1 = new OAuth1CredentialProvider<>("provider1", mock(OAuth1ConnectionFactory.class), mock(Applicator.class)); final AcquisitionMethod method1 = new AcquisitionMethod.Builder() .description("provider1") .label("provider1") .icon("provider1") .type(Type.OAUTH1) .configured(true) .build(); assertThat(oauth1.acquisitionMethod()).isEqualTo(method1); }