@Test
public void testDisableTracking() {

    System.setProperty("IGNITE_PAGE_LOCK_TRACKER_TYPE", String.valueOf(-1));
    try {
        PageLockTrackerManager mgr = new PageLockTrackerManager(new ListeningTestLogger());
        PageLockListener pll = mgr.createPageLockTracker("test");
        Assert.assertNotNull(pll);
        Assert.assertSame(pll, DataStructure.NOOP_LSNR);
    } finally {
        System.clearProperty("IGNITE_PAGE_LOCK_TRACKER_TYPE");
    }
    System.setProperty("IGNITE_PAGE_LOCK_TRACKER_TYPE", String.valueOf(HEAP_LOG));
    try {
        PageLockTrackerManager mgr = new PageLockTrackerManager(new ListeningTestLogger());
        PageLockListener pll = mgr.createPageLockTracker("test");
        Assert.assertNotNull(pll);
        Assert.assertNotSame(pll, DataStructure.NOOP_LSNR);
    } finally {
        System.clearProperty("IGNITE_PAGE_LOCK_TRACKER_TYPE");
    }
}