@Test
public void from() throws Exception {

    ProviderConfig providerConfig = new ProviderConfig().setBootstrap("test");
    ProviderBootstrap bootstrap = Bootstraps.from(providerConfig);
    Assert.assertEquals(TestProviderBootstrap.class, bootstrap.getClass());
    Assert.assertEquals(providerConfig, bootstrap.getProviderConfig());
    // if not set bootstrap
    providerConfig = new ProviderConfig();
    bootstrap = Bootstraps.from(providerConfig);
    Assert.assertEquals(TestProviderBootstrap.class, bootstrap.getClass());
    Assert.assertEquals(providerConfig, bootstrap.getProviderConfig());
}