replace mock with double
add encoding and path