@Test
public void testAllOperationsAreAllowed() throws FunctionalException {

    // Run the test
    this.bundleService.enqueueBundleRequest(ORGANISATION_IDENTIFICATION, DEVICE_IDENTIFICATION,
            this.actionRequestMockList, MESSAGE_PRIORITY, BYPASS_RETRY);
    // Verify the test
    final ArgumentCaptor<SmartMeteringRequestMessage> message = ArgumentCaptor
            .forClass(SmartMeteringRequestMessage.class);
    verify(this.smartMeteringRequestMessageSender).send(message.capture());
    assertThat(message.getValue().getOrganisationIdentification()).isEqualTo(ORGANISATION_IDENTIFICATION);
    assertThat(message.getValue().getDeviceIdentification()).isEqualTo(DEVICE_IDENTIFICATION);
    final BundleMessageRequest requestMessage = (BundleMessageRequest) message.getValue().getRequest();
    final List<ActionRequest> actionList = requestMessage.getBundleList();
    assertThat(actionList.size()).isEqualTo(this.actionRequestMockList.size());
    for (int i = 0; i < actionList.size(); i++) {
        assertThat(actionList.get(i)).isEqualTo(this.actionRequestMockList.get(i));
    }
}