### Question:
SqsConsumerProperties { public QueueProperties getQueue() { return queue; }  Integer getMaxNumberOfMessages(); void setMaxNumberOfMessages(Integer maxNumberOfMessages); Integer getVisibilityTimeout(); void setVisibilityTimeout(Integer visibilityTimeout); Integer getWaitTimeOut(); void setWaitTimeOut(Integer waitTimeOut); long getQueueStopTimeout(); void setQueueStopTimeout(long queueStopTimeout); SqsMessageDeletionPolicy getMessageDeletionPolicy(); void setMessageDeletionPolicy(SqsMessageDeletionPolicy messageDeletionPolicy); QueueProperties getQueue(); void setQueue(QueueProperties queue);  }### Answer:
@Test public void createsQueueAttributeForSuppliedKey() { SqsConsumerProperties sqsConsumerProperties = new SqsConsumerProperties(); SqsConsumerProperties.QueueProperties queue = sqsConsumerProperties.getQueue(); queue.setDelaySeconds(10); queue.setMaximumMessageSize(1000); Map<String, String> queueAttributes = queue.toQueueAttributes(); assertThat(queueAttributes).containsOnlyKeys(QueueAttributeName.DelaySeconds.toString(), QueueAttributeName.MaximumMessageSize.toString()) .containsEntry(QueueAttributeName.DelaySeconds.toString(), "10") .containsEntry(QueueAttributeName.MaximumMessageSize.toString(), "1000"); }