@Test
public void testProviderWithNoRegionAndEndpoint() {

    DefaultProviderConfig config = new DefaultProviderConfig("access", "secret", "", "");

    Optional<Provider> provider = config.createProvider();
    assertThat(provider.isPresent()).isTrue();

    assertThat(provider.get().getEndpoint().isPresent()).isFalse();
    assertThat(provider.get().getOptions().containsKey("region")).isFalse();
}