Extracted method to build expectations that receive dict constructor like arguments