### Question:
AzureRegionHelper implements CloudRegionHelper<AzureRegion, AzureRegionCredentials> { @Override public void validateRegion(final AzureRegion region, final AzureRegionCredentials credentials) { validateRegionCode(region.getRegionCode(), messageHelper); validateStorageAccount(region.getStorageAccount(), credentials.getStorageAccountKey()); checkResourceGroupExistence(region.getResourceGroup(), region.getAuthFile()); validateStoragePolicy(region.getAzurePolicy()); }  @Override CloudProvider getProvider(); @Override void validateRegion(final AzureRegion region, final AzureRegionCredentials credentials); @Override List<String> loadAvailableRegions(); @Override AzureRegion mergeRegions(final AzureRegion originalRegion, final AzureRegion updatedRegion); @Override AzureRegionCredentials mergeCredentials(final AzureRegionCredentials oldCredentials,
                                                   final AzureRegionCredentials updatedCredentials); String serializeCredentials(AzureRegion region, AzureRegionCredentials credentials);  }### Answer:
@Test public void shouldThrowIfRegionIdIsMissing() { final AzureRegionHelper azureRegionHelper = new AzureRegionHelper(messageHelper); final AzureRegion region = new AzureRegion(); assertThrows(IllegalArgumentException.class, () -> azureRegionHelper.validateRegion(region, new AzureRegionCredentials())); }
@Test public void createShouldThrowIfRegionIdIsInvalid() { final AzureRegionHelper azureRegionHelper = new AzureRegionHelper(messageHelper); final AzureRegion region = new AzureRegion(); region.setRegionCode("invalid"); assertThrows(IllegalArgumentException.class, () -> azureRegionHelper.validateRegion(region, new AzureRegionCredentials())); }