@Override
    public void releaseAllReservations() {
        for (Long counter : reservedCapacityCountByTxId.values()) {
            nodeWideUsedCapacityCounter.add(-counter);
        }
        reservedCapacityCountByTxId.clear();
    }
@Test
    public void releaseAllReservations() {
        UUID txnId = UuidUtil.newSecureUUID();
        for (int i = 0; i < 11; i++) {
            counter.increment(txnId, false);
        }
        counter.releaseAllReservations();

        Map<UUID, Long> countPerTxnId = counter.getReservedCapacityCountPerTxnId();
        assertNull(countPerTxnId.get(txnId));
        assertEquals(0L, nodeWideUsedCapacityCounter.currentValue());
    }