Add Mockito tests for conversion calls.