    @Test
    public void shouldNotSetDbNameOnDataSourceWhenConnectionPropertiesSupportedAndDbNameNotSet() throws Exception {

        given(config.getDataSourceType()).willReturn(XQueryDataSourceType.SEDNA);
        given(config.getDatabaseName()).willReturn(null);

        factory.getDataSource();

        verifyNoMoreInteractions(dataSource);
    }