def METHOD_NAME(
    build_context: BuildContext, mocked_demisto_client: DemistoClientMock, mocker
) -> ServerContext:
    """
    Creates a ServerContext with the requested build context and mocked client.
    Args:
        build_context: The build context in which the server context should be created
        mocked_demisto_client: The mocked client with which the Server context will generate requests
        mocker: Mocker object
    Returns:
        A ServerContext instance
    """
    mocker.patch(
        "demisto_sdk.commands.test_content.TestContentClasses.demisto_client",
        mocked_demisto_client,
    )
    # Mocking unnecessary calls
    mocker.patch(
        "demisto_sdk.commands.test_content.mock_server.run_with_mock"
    ).return_value.__enter__.return_value = {}
    mocker.patch(
        "demisto_sdk.commands.test_content.IntegrationsLock.safe_lock_integrations",
        return_value=True,
    )
    mocker.patch(
        "demisto_sdk.commands.test_content.IntegrationsLock.safe_unlock_integrations"
    )
    mocker.patch(
        "demisto_sdk.commands.test_content.TestContentClasses.TestContext._run_docker_threshold_test"
    )
    mocker.patch(
        "demisto_sdk.commands.test_content.TestContentClasses.is_redhat_instance",
        return_value=False,
    )
    mocker.patch(
        "demisto_sdk.commands.test_content.TestContentClasses.TestContext._notify_failed_test"
    )
    mocker.patch.object(MITMProxy, "__init__", lambda *args, **kwargs: None)
    mocker.patch("time.sleep")
    # Executing the test
    server_context = ServerContext(build_context, "1.1.1.1")
    server_context.proxy = mocker.MagicMock()
    return server_context