def METHOD_NAME(self, ansible_json_encoder, test_input, expected):
    """
    Test for the default encoder of AnsibleJSONEncoder.default().
    If objects of different classes that are not tested above were passed,
    AnsibleJSONEncoder.default() invokes 'default()' method of json.JSONEncoder superclass.
    """
    assert ansible_json_encoder.default(test_input) == expected