Factor out getMeta from mockClient.