def METHOD_NAME(list_memberships: mock.MagicMock, list_components: mock.MagicMock):
    list_memberships.return_value = V1ListMembershipsResponse(memberships=[V1Membership(project_id="default-project")])
    list_components.return_value = V1ListLightningworkResponse(lightningworks=[])
    cluster_manager = _AppManager()
    cluster_manager.list_components(app_id="cheese", phase_in=[V1LightningworkState.RUNNING])
    list_memberships.assert_called_once()
    list_components.assert_called_once_with(
        project_id="default-project", app_id="cheese", phase_in=[V1LightningworkState.RUNNING]
    )