public void testPrefixAlreadyExists() {
organizationForm.setName("name");
organizationForm.setStorageConfigurationId(1L);
organizationForm.setStoragePrefix("prefix");
OrgStorageConfig orgStorageConfig = new OrgStorageConfig();
Organization organization = new Organization();
organization.setId(1L);
orgStorageConfig.setOrganization(organization);
Mockito.when(organizationService.getByName(organizationForm.getName())).thenReturn(null);
Mockito.when(orgStorageConfigService.getByPrefix(organizationForm.getStoragePrefix())).thenReturn(orgStorageConfig);
validator.validate(organizationForm, errors);