testSimpleSearches() {
    const needle = {};
    const hayStack = {a: {a: {a: needle}}};
    assertRetainsReference(hayStack, needle);
    assertDoesNotRetainReference(hayStack, {});

    asserts.assertThrowsJsUnitException(
        () => {
          assertDoesNotRetainReference(hayStack, needle);
        },
        `expected there to be no retention path, found the value @ ` +
            `object['a']['a']['a']`);
    asserts.assertThrowsJsUnitException(() => {
      assertRetainsReference(hayStack, {});
    }, `The object does not transitively retain a reference to the given value`);
  }
@fileoverview Tests for goog.testing.objects.