Used javax.inject.Provider instead of com.google.inject.Provider; Added test with javax.inject.Provider;