Add shortcut for replaceByMock method into mock proxy, so less code needs to be written