fixed the test case, now all tests can pass

Signed-off-by: Dearshor Xue <dearshor@gmail.com>
trun to use java-based config.

Signed-off-by: Dearshor Xue <dearshor@gmail.com>
changed to use spring factoryBean's getObject() method to renturn instance of factoryBean instand of factoryBean itself.

Signed-off-by: Dearshor Xue <dearshor@gmail.com>
deleted unused files.

Signed-off-by: Dearshor Xue <dearshor@gmail.com>