ReferenceCountHelperImpl { public boolean trackFreedReferenceCounts() { return trackFreedRefCounts; } ReferenceCountHelperImpl(boolean trackRefCounts, boolean trackFreedRefCounts); boolean trackReferenceCounts(); boolean trackFreedReferenceCounts(); void setReferenceCountOwner(Object owner); Object createReferenceCountOwner(); void skipRefCountTracking(); boolean isRefCountTracking(); void unskipRefCountTracking(); List<RefCountChangeInfo> getRefCountInfo(long address); List<RefCountChangeInfo> peekRefCountInfo(long address); List<RefCountChangeInfo> getFreeRefCountInfo(long address);  }
@Test public void doTrackFreedReferenceCountsWithTrackRefsTrueAndTrackFreesTrue() { rchi = getTrueTrue(); assertTrue(rchi.trackFreedReferenceCounts()); }
@Test public void doTrackFreedReferenceCountsWithTrackRefsTrueAndTrackFreesFalse() { rchi = getTrueFalse(); assertFalse(rchi.trackFreedReferenceCounts()); }
@Test public void doTrackFreedReferenceCountsWithTrackRefsFalseAndTrackFreesTrue() { rchi = getFalseTrue(); assertTrue(rchi.trackFreedReferenceCounts()); }
@Test public void doTrackFreedReferenceCountsWithTrackRefsFalseAndTrackFreesFalse() { rchi = getFalseFalse(); assertFalse(rchi.trackFreedReferenceCounts()); }