test_class.declarator: USER_ID_1 = UUID.randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID USER_ID_1 = UUID.randomUUID();
test_class.type: UUID
test_class.var_name: USER_ID_1
test_class.declarator: USER_ID_2 = UUID.randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID USER_ID_2 = UUID.randomUUID();
test_class.type: UUID
test_class.var_name: USER_ID_2
test_class.declarator: USER_ID_3 = UUID.randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID USER_ID_3 = UUID.randomUUID();
test_class.type: UUID
test_class.var_name: USER_ID_3
test_class.declarator: ORGANIZATION_ID_1 = UUID.randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID ORGANIZATION_ID_1 = UUID.randomUUID();
test_class.type: UUID
test_class.var_name: ORGANIZATION_ID_1
test_class.declarator: ORGANIZATION_ID_2 = UUID.randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID ORGANIZATION_ID_2 = UUID.randomUUID();
test_class.type: UUID
test_class.var_name: ORGANIZATION_ID_2
test_class.declarator: ORG_1_USER_1 = new User(USER_ID_1, ORGANIZATION_ID_1, "username-1", "user-display-1")
test_class.modifier: private static final
test_class.original_string: private static final User ORG_1_USER_1 = new User(USER_ID_1, ORGANIZATION_ID_1, "username-1", "user-display-1");
test_class.type: User
test_class.var_name: ORG_1_USER_1
test_class.declarator: ORG_1_USER_2 = new User(USER_ID_2, ORGANIZATION_ID_1, "username-2", "user-display-2")
test_class.modifier: private static final
test_class.original_string: private static final User ORG_1_USER_2 = new User(USER_ID_2, ORGANIZATION_ID_1, "username-2", "user-display-2");
test_class.type: User
test_class.var_name: ORG_1_USER_2
test_class.declarator: ORG_2_USER_1 = new User(USER_ID_3, ORGANIZATION_ID_2, "username-3", "user-display-3")
test_class.modifier: private static final
test_class.original_string: private static final User ORG_2_USER_1 = new User(USER_ID_3, ORGANIZATION_ID_2, "username-3", "user-display-3");
test_class.type: User
test_class.var_name: ORG_2_USER_1
test_class.declarator: usersBelongToOrganizationValidator
test_class.modifier: private
test_class.original_string: private UsersBelongToOrganizationValidator usersBelongToOrganizationValidator;
test_class.type: UsersBelongToOrganizationValidator
test_class.var_name: usersBelongToOrganizationValidator
test_class.declarator: usersReadService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UsersReadService usersReadService;
test_class.type: UsersReadService
test_class.var_name: usersReadService
test_class.file: command-validation-support/src/test/java/engineering/everest/lhotse/axon/command/validators/UsersBelongToOrganizationValidatorTest.java
test_class.identifier: UsersBelongToOrganizationValidatorTest
test_case.body: @Test
      void validate_WillPass_WhenEveryUserBelongsToOrganization() {
          usersBelongToOrganizationValidator.validate(createValidatableCommand(Set.of(USER_ID_1, USER_ID_2)));
      }
test_case.class_method_signature: UsersBelongToOrganizationValidatorTest.validate_WillPass_WhenEveryUserBelongsToOrganization()
test_case.full_signature: @Test void validate_WillPass_WhenEveryUserBelongsToOrganization()
test_case.identifier: validate_WillPass_WhenEveryUserBelongsToOrganization
test_case.invocations: validate createValidatableCommand of
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void validate_WillPass_WhenEveryUserBelongsToOrganization()
focal_class.declarator: usersReadService
focal_class.modifier: private final
focal_class.original_string: private final UsersReadService usersReadService;
focal_class.type: UsersReadService
focal_class.var_name: usersReadService
focal_class.file: command-validation-support/src/main/java/engineering/everest/lhotse/axon/command/validators/UsersBelongToOrganizationValidator.java
focal_class.identifier: UsersBelongToOrganizationValidator
focal_class.interfaces: implements Validates<UsersBelongToOrganizationValidatableCommand>
focal_class.class_method_signature: UsersBelongToOrganizationValidator.UsersBelongToOrganizationValidator(UsersReadService usersReadService)
focal_class.full_signature: @Autowired public  UsersBelongToOrganizationValidator(UsersReadService usersReadService)
focal_class.identifier: UsersBelongToOrganizationValidator
focal_class.modifiers: @Autowired public
focal_class.parameters: (UsersReadService usersReadService)
focal_class.signature:  UsersBelongToOrganizationValidator(UsersReadService usersReadService)
focal_class.class_method_signature: UsersBelongToOrganizationValidator.validate(UsersBelongToOrganizationValidatableCommand validatable)
focal_class.full_signature: @Override public void validate(UsersBelongToOrganizationValidatableCommand validatable)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (UsersBelongToOrganizationValidatableCommand validatable)
focal_class.return: void
focal_class.signature: void validate(UsersBelongToOrganizationValidatableCommand validatable)
focal_method.body: @Override
      public void validate(UsersBelongToOrganizationValidatableCommand validatable) {
          for (UUID userId : validatable.getUserIds()) {
              Validate.isTrue(validatable.getOrganizationId().equals(usersReadService.getById(userId).getOrganizationId()),
                      "User %s does not belong to organization", userId);
          }
      }
focal_method.class_method_signature: UsersBelongToOrganizationValidator.validate(UsersBelongToOrganizationValidatableCommand validatable)
focal_method.full_signature: @Override public void validate(UsersBelongToOrganizationValidatableCommand validatable)
focal_method.identifier: validate
focal_method.invocations: getUserIds isTrue equals getOrganizationId getOrganizationId getById
focal_method.modifiers: @Override public
focal_method.parameters: (UsersBelongToOrganizationValidatableCommand validatable)
focal_method.return: void
focal_method.signature: void validate(UsersBelongToOrganizationValidatableCommand validatable)