Instead of adding a dependency to Guava, how about creating an annotation for msgpack? VisibleForTesting has no functionality except for improving the readabilty of the code.