@Override
    public ServiceStateTransition.Response mayTransitionServiceTo(final ServiceInstance instance,
                                                                  final Service.ServiceState newState,
                                                                  final String reason) {
        return transactionResult(configuration -> mayTransitServiceTo(configuration, instance, newState, reason));
    }
@Test
    void shouldReturnEmptyForTransitionWorkerStateGivenInvalidWorker() {
        // Given
        ServiceInstance instance = Fixtures.RunningServiceInstance;

        // When
        ServiceStateTransition.Response result = repository
            .mayTransitionServiceTo(instance, Service.ServiceState.TERMINATING);

        // Then
        Assertions.assertEquals(new ServiceStateTransition.Response(ServiceStateTransition.Result.ABORTED), result);
    }