The reason for adding this file here is that the original file doesn't make the .getConnection() public. In unit test, that method is being used. If delete this file, the unit test would have errors and cannot be run. But there is another solution that to modify original DbManager.java to make the method public. I will add access modifier to the original DbManager and delete this one.