@Transactional
    public boolean release(ResourceId resourceId, TimeSlot timeSlot, Owner requester) {
        ResourceGroupedAvailability toRelease = findGrouped(resourceId, timeSlot);
        if (toRelease.hasNoSlots()) {
            return false;
        }
        boolean result = toRelease.release(requester);
        if (result) {
            return availabilityRepository.saveCheckingVersion(toRelease);
        }
        return result;
    }
@Test
    void cantReleaseWhenNoSlotsCreated() {
        //given
        ResourceId resourceId = ResourceId.newOne();
        TimeSlot oneDay = TimeSlot.createDailyTimeSlotAtUTC(2021, 1, 1);
        Owner owner = Owner.newOne();

        //when
        boolean result = availabilityFacade.release(resourceId, oneDay, owner);

        //then
        assertFalse(result);
    }