Created testable test map method