Static method and testable code