public void declareManagedMemoryUseCaseAtSlotScope(ManagedMemoryUseCase managedMemoryUseCase) {
        checkNotNull(managedMemoryUseCase);
        checkArgument(managedMemoryUseCase.scope == ManagedMemoryUseCase.Scope.SLOT);

        managedMemorySlotScopeUseCases.add(managedMemoryUseCase);
    }
@Test
    void testDeclareManagedMemorySlotScopeUseCaseFailWrongScope() {
        assertThatThrownBy(
                        () ->
                                transformation.declareManagedMemoryUseCaseAtSlotScope(
                                        ManagedMemoryUseCase.OPERATOR))
                .isInstanceOf(IllegalArgumentException.class);
    }