@Test
public void testUseNameBlank() {

    final String ds0Url = "www.baidu.com";
    final String ds0BasePackage = "com.guosen.zebra.ping";
    final String ds0DataSourceName = "ds0";
    final String ds0Username = StringUtils.EMPTY;
    new Expectations() {
        {
            OperateProperties.getStrValue("zebra.database.url[0]", StringUtils.EMPTY);
            result = ds0Url;
        }
        {
            OperateProperties.getStrValue("zebra.database.basePackage[0]", StringUtils.EMPTY);
            result = ds0BasePackage;
        }
        {
            OperateProperties.getStrValue("zebra.database.dataSourceName[0]", StringUtils.EMPTY);
            result = ds0DataSourceName;
        }
        {
            OperateProperties.getStrValue("zebra.database.username[0]", StringUtils.EMPTY);
            result = ds0Username;
        }
    };
    try {
        DataSourceCfgUtil.getDataSourceCfgList();
        fail("Must have exception.");
    }
    catch (IllegalArgumentException e) {
        assertThat(e.getMessage(), equalTo("zebra.database.username[0] must be config."));
    }
}