* Provide the possibility to override this method for an mock implementation
* @return AmazonSQSClient
*/
AmazonSQSClient createClient() {
AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
AmazonSQSClient client = new AmazonSQSClient(credentials);
if (configuration.getAmazonSQSEndpoint() != null) {
client.setEndpoint(configuration.getAmazonSQSEndpoint());
}
return client;
}