ReferenceCountHelperImpl { public boolean trackReferenceCounts() { return trackRefCounts; } 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 doTrackReferenceCountsWithTrackRefsTrueAndTrackFreesTrue() { rchi = getTrueTrue(); assertTrue(rchi.trackReferenceCounts()); }
@Test public void doTrackReferenceCountsWithTrackRefsTrueAndTrackFreesFalse() { rchi = getTrueFalse(); assertTrue(rchi.trackReferenceCounts()); }
@Test public void doTrackReferenceCountsWithTrackRefsFalseAndTrackFreesTrue() { rchi = getFalseTrue(); assertFalse(rchi.trackReferenceCounts()); }
@Test public void doTrackReferenceCountsWithTrackRefsFalseAndTrackFreesFalse() { rchi = getFalseFalse(); assertFalse(rchi.trackReferenceCounts()); }