func getResult(t *testing.T, src *graph.Graph, key string) *apply.Result {
    meta, ok := src.Get(key)
    require.True(t, ok, "%q was not present in the graph", key)

    result, ok := meta.Value().(*apply.Result)