def METHOD_NAME(mock_conn, mock_config) -> Endpoint:
    """Return a mocked object of the Endpoint class for use in tests"""
    class MockEndpoint(Endpoint):
        def __repr__(self):  # avoid network calls when displaying test results
            return object.__repr__(self)
    return MockEndpoint(conn=mock_conn, conf=mock_config, workspace=456, id=123)