class AzureMockAccountMappingService {

    public Map<String, String> getGroupMappings(String resourceGroup, Credential credential, String adminGroupName) {
        String subscriptionId = credential.getAzure().getSubscriptionId();
        if (StringUtils.isNotEmpty(adminGroupName)) {
            return replacePlaceholders(getGroupMappings(adminGroupName), resourceGroup, subscriptionId);
        } else {
            throw new CloudbreakServiceException("Failed to get group mappings because of missing adminGroupName");
        }
    }

}