@Test
public void testNoConfig() {

    new Expectations() {
        {
            ApplicationContextUtil.getEnvironment();
            result = environment;
        }
        {
            Binder.get(environment);
            result = binder;
        }
        {
            @SuppressWarnings("unchecked")
            Bindable<ZebraShardingConfiguration> bindable = (Bindable<ZebraShardingConfiguration>) any;
            binder.bind("zebra.database", bindable);
            result = bindResult;
        }
        {
            bindResult.isBound();
            result = false;
        }
    };
    ZebraShardingConfiguration cfg = ZebraShardingConfigurationUtil.getZebraShardingConfiguration();
    assertThat(cfg, is(nullValue()));
}