@Override
public DomainMetadataResult domainMetadata(DomainMetadataRequest domainMetadataRequest) throws AmazonServiceException, AmazonClientException {
this.domainMetadataRequest = domainMetadataRequest;
if ("NonExistingDomain".equals(domainMetadataRequest.getDomainName())) {
throw new NoSuchDomainException("Domain 'NonExistingDomain' doesn't exist.");
}
DomainMetadataResult result = new DomainMetadataResult();
result.setTimestamp(new Integer(10));
result.setItemCount(new Integer(11));