should probably add tests for mapping Long, and also mapping a non-primitive type.