def METHOD_NAME(
        self,
        mock_ensure_dir,
        mock_get_available_apis,
):
    mock_get_available_apis.return_value = [RECOMMENDED_TARGET_API]
    context = Context()
    context.setup_dirs(os.getcwd())
    context.prepare_build_environment(
        user_sdk_dir='sdk',
        user_ndk_dir='ndk',
        user_android_api=None,
        user_ndk_api=None,
    )
    # The context was supplied with relative SDK and NDK dirs. Check
    # that it resolved them to absolute paths.
    real_sdk_dir = os.path.join(os.getcwd(), 'sdk')
    real_ndk_dir = os.path.join(os.getcwd(), 'ndk')
    assert context.sdk_dir == real_sdk_dir
    assert context.ndk_dir == real_ndk_dir
    context_paths = context.env['PATH'].split(':')
    assert context_paths[0:3] == [
        f'{real_ndk_dir}/toolchains/llvm/prebuilt/{context.ndk.host_tag}/bin',
        real_ndk_dir,
        f'{real_sdk_dir}/tools'
    ]