Change visibility to mapObjectForKey method.
Added object for do test.
Support int type and add test.