public static BlockLease newLease(Block block, Closer... closers)
    {
        return new ClosingBlockLease(block, closers);
    }
@Test
    public void testArrayAllocations()
    {
        CountingArrayAllocator allocator = new CountingArrayAllocator();

        assertEquals(allocator.getBorrowedArrayCount(), 0);
        int[] array = allocator.borrowIntArray(1);
        try (BlockLease ignored = newLease(dummyBlock, () -> allocator.returnArray(array))) {
            assertEquals(allocator.getBorrowedArrayCount(), 1);
        }
        assertEquals(allocator.getBorrowedArrayCount(), 0);
    }