test_class.declarator: ORGANIZATION_ID = randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID ORGANIZATION_ID = randomUUID();
test_class.type: UUID
test_class.var_name: ORGANIZATION_ID
test_class.declarator: ORG_ADMIN_EMAIL_ADDRESS_1 = "EmailAddress"
test_class.modifier: private static final
test_class.original_string: private static final String ORG_ADMIN_EMAIL_ADDRESS_1 = "EmailAddress";
test_class.type: String
test_class.var_name: ORG_ADMIN_EMAIL_ADDRESS_1
test_class.declarator: ORGANIZATION_NAME = "organization-name"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_NAME = "organization-name";
test_class.type: String
test_class.var_name: ORGANIZATION_NAME
test_class.declarator: ORGANIZATION_STREET_1 = "street-1"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_STREET_1 = "street-1";
test_class.type: String
test_class.var_name: ORGANIZATION_STREET_1
test_class.declarator: ORGANIZATION_CITY_1 = "city-1"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_CITY_1 = "city-1";
test_class.type: String
test_class.var_name: ORGANIZATION_CITY_1
test_class.declarator: ORGANIZATION_STATE_1 = "state-1"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_STATE_1 = "state-1";
test_class.type: String
test_class.var_name: ORGANIZATION_STATE_1
test_class.declarator: ORGANIZATION_COUNTRY_1 = "country-1"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_COUNTRY_1 = "country-1";
test_class.type: String
test_class.var_name: ORGANIZATION_COUNTRY_1
test_class.declarator: ORGANIZATION_POSTAL_CODE_1 = "postal-1"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_POSTAL_CODE_1 = "postal-1";
test_class.type: String
test_class.var_name: ORGANIZATION_POSTAL_CODE_1
test_class.declarator: ORGANIZATION_WEBSITE_URL_1 = "website-1"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_WEBSITE_URL_1 = "website-1";
test_class.type: String
test_class.var_name: ORGANIZATION_WEBSITE_URL_1
test_class.declarator: ORGANIZATION_CONTACT_NAME_1 = "contactName"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_CONTACT_NAME_1 = "contactName";
test_class.type: String
test_class.var_name: ORGANIZATION_CONTACT_NAME_1
test_class.declarator: ORGANIZATION_PHONE_NUMBER_1 = "phoneNumber"
test_class.modifier: private static final
test_class.original_string: private static final String ORGANIZATION_PHONE_NUMBER_1 = "phoneNumber";
test_class.type: String
test_class.var_name: ORGANIZATION_PHONE_NUMBER_1
test_class.declarator: randomFieldsGenerator
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private RandomFieldsGenerator randomFieldsGenerator;
test_class.type: RandomFieldsGenerator
test_class.var_name: randomFieldsGenerator
test_class.declarator: commandGateway
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private HazelcastCommandGateway commandGateway;
test_class.type: HazelcastCommandGateway
test_class.var_name: commandGateway
test_class.declarator: defaultOrganizationService
test_class.modifier: private
test_class.original_string: private DefaultOrganizationsService defaultOrganizationService;
test_class.type: DefaultOrganizationsService
test_class.var_name: defaultOrganizationService
test_class.file: organizations/src/test/java/engineering/everest/lhotse/organizations/services/DefaultOrganizationsServiceTest.java
test_class.identifier: DefaultOrganizationsServiceTest
test_case.body: @Test
      void createRegisteredOrganisation_WillSendCommandAndWaitForCompletion() {
          var expectedCommand = new CreateRegisteredOrganizationCommand(ORGANIZATION_ID, ADMIN_ID,
                  ORGANIZATION_NAME, ORGANIZATION_STREET_1, ORGANIZATION_CITY_1, ORGANIZATION_STATE_1, ORGANIZATION_COUNTRY_1, ORGANIZATION_POSTAL_CODE_1, ORGANIZATION_WEBSITE_URL_1, ORGANIZATION_CONTACT_NAME_1, ORGANIZATION_PHONE_NUMBER_1, ORG_ADMIN_EMAIL_ADDRESS_1);
  
          when(randomFieldsGenerator.genRandomUUID()).thenReturn(ORGANIZATION_ID);
          when(commandGateway.sendAndWait(expectedCommand)).thenReturn(ORGANIZATION_ID);
  
          var newOrgId = defaultOrganizationService.createRegisteredOrganization(ADMIN_ID, ORGANIZATION_NAME, ORGANIZATION_STREET_1, ORGANIZATION_CITY_1, ORGANIZATION_STATE_1,
                  ORGANIZATION_COUNTRY_1, ORGANIZATION_POSTAL_CODE_1, ORGANIZATION_WEBSITE_URL_1, ORGANIZATION_CONTACT_NAME_1, ORGANIZATION_PHONE_NUMBER_1, ORG_ADMIN_EMAIL_ADDRESS_1);
  
          assertEquals(ORGANIZATION_ID, newOrgId);
          verify(commandGateway).sendAndWait(expectedCommand);
      }
test_case.class_method_signature: DefaultOrganizationsServiceTest.createRegisteredOrganisation_WillSendCommandAndWaitForCompletion()
test_case.full_signature: @Test void createRegisteredOrganisation_WillSendCommandAndWaitForCompletion()
test_case.identifier: createRegisteredOrganisation_WillSendCommandAndWaitForCompletion
test_case.invocations: thenReturn when genRandomUUID thenReturn when sendAndWait createRegisteredOrganization assertEquals sendAndWait verify
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void createRegisteredOrganisation_WillSendCommandAndWaitForCompletion()
focal_class.declarator: randomFieldsGenerator
focal_class.modifier: private final
focal_class.original_string: private final RandomFieldsGenerator randomFieldsGenerator;
focal_class.type: RandomFieldsGenerator
focal_class.var_name: randomFieldsGenerator
focal_class.declarator: commandGateway
focal_class.modifier: private final
focal_class.original_string: private final HazelcastCommandGateway commandGateway;
focal_class.type: HazelcastCommandGateway
focal_class.var_name: commandGateway
focal_class.file: organizations/src/main/java/engineering/everest/lhotse/organizations/services/DefaultOrganizationsService.java
focal_class.identifier: DefaultOrganizationsService
focal_class.interfaces: implements OrganizationsService
focal_class.class_method_signature: DefaultOrganizationsService.DefaultOrganizationsService(RandomFieldsGenerator randomFieldsGenerator, HazelcastCommandGateway commandGateway)
focal_class.full_signature: public  DefaultOrganizationsService(RandomFieldsGenerator randomFieldsGenerator, HazelcastCommandGateway commandGateway)
focal_class.identifier: DefaultOrganizationsService
focal_class.modifiers: public
focal_class.parameters: (RandomFieldsGenerator randomFieldsGenerator, HazelcastCommandGateway commandGateway)
focal_class.signature:  DefaultOrganizationsService(RandomFieldsGenerator randomFieldsGenerator, HazelcastCommandGateway commandGateway)
focal_class.class_method_signature: DefaultOrganizationsService.updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName,
                                     String street, String city, String state, String country, String postalCode,
                                     String websiteUrl, String contactName, String phoneNumber, String emailAddress)
focal_class.full_signature: @Override public void updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName,
                                     String street, String city, String state, String country, String postalCode,
                                     String websiteUrl, String contactName, String phoneNumber, String emailAddress)
focal_class.identifier: updateOrganization
focal_class.modifiers: @Override public
focal_class.parameters: (UUID requestingUserId, UUID organizationId, String organizationName,
                                     String street, String city, String state, String country, String postalCode,
                                     String websiteUrl, String contactName, String phoneNumber, String emailAddress)
focal_class.return: void
focal_class.signature: void updateOrganization(UUID requestingUserId, UUID organizationId, String organizationName,
                                     String street, String city, String state, String country, String postalCode,
                                     String websiteUrl, String contactName, String phoneNumber, String emailAddress)
focal_class.class_method_signature: DefaultOrganizationsService.createRegisteredOrganization(UUID requestingUserId, String organizationName, String street, String city, String state,
                                               String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                               String emailAddress)
focal_class.full_signature: @Override public UUID createRegisteredOrganization(UUID requestingUserId, String organizationName, String street, String city, String state,
                                               String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                               String emailAddress)
focal_class.identifier: createRegisteredOrganization
focal_class.modifiers: @Override public
focal_class.parameters: (UUID requestingUserId, String organizationName, String street, String city, String state,
                                               String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                               String emailAddress)
focal_class.return: UUID
focal_class.signature: UUID createRegisteredOrganization(UUID requestingUserId, String organizationName, String street, String city, String state,
                                               String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                               String emailAddress)
focal_class.class_method_signature: DefaultOrganizationsService.disableOrganization(UUID requestingUserId, UUID organizationId)
focal_class.full_signature: @Override public void disableOrganization(UUID requestingUserId, UUID organizationId)
focal_class.identifier: disableOrganization
focal_class.modifiers: @Override public
focal_class.parameters: (UUID requestingUserId, UUID organizationId)
focal_class.return: void
focal_class.signature: void disableOrganization(UUID requestingUserId, UUID organizationId)
focal_class.class_method_signature: DefaultOrganizationsService.enableOrganization(UUID requestingUserId, UUID organizationId)
focal_class.full_signature: @Override public void enableOrganization(UUID requestingUserId, UUID organizationId)
focal_class.identifier: enableOrganization
focal_class.modifiers: @Override public
focal_class.parameters: (UUID requestingUserId, UUID organizationId)
focal_class.return: void
focal_class.signature: void enableOrganization(UUID requestingUserId, UUID organizationId)
focal_method.body: @Override
      public UUID createRegisteredOrganization(UUID requestingUserId, String organizationName, String street, String city, String state,
                                               String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                               String emailAddress) {
          UUID organizationId = randomFieldsGenerator.genRandomUUID();
          return commandGateway.sendAndWait(new CreateRegisteredOrganizationCommand(organizationId,
                  requestingUserId, organizationName, street, city, state, country, postalCode, websiteUrl, contactName,
                  phoneNumber, emailAddress));
      }
focal_method.class_method_signature: DefaultOrganizationsService.createRegisteredOrganization(UUID requestingUserId, String organizationName, String street, String city, String state,
                                               String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                               String emailAddress)
focal_method.full_signature: @Override public UUID createRegisteredOrganization(UUID requestingUserId, String organizationName, String street, String city, String state,
                                               String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                               String emailAddress)
focal_method.identifier: createRegisteredOrganization
focal_method.invocations: genRandomUUID sendAndWait
focal_method.modifiers: @Override public
focal_method.parameters: (UUID requestingUserId, String organizationName, String street, String city, String state,
                                               String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                               String emailAddress)
focal_method.return: UUID
focal_method.signature: UUID createRegisteredOrganization(UUID requestingUserId, String organizationName, String street, String city, String state,
                                               String country, String postalCode, String websiteUrl, String contactName, String phoneNumber,
                                               String emailAddress)