Do you know what version / commit of SDKv2 you are using? There was a commit on master (unreleased) that caused reattaching to not work and the tests to attempt downloading.
What is the value for the providerName constant above? What does the test config look like?
For the factories, its probably not what is going wrong here, but its ideal for it to be a true factory, not just reusing a singleton value.