@Test
public void getQueueMessageCountDetails() throws Exception {
// Arrange
String queueName = "testGetQueueMessageCountDetails";
service.createQueue(new QueueInfo(queueName));
service.sendQueueMessage(queueName, new BrokeredMessage("Hello World"));
Long expectedActiveMessageCount = 1L;
Long expectedDeadLetterMessageCount = 0L;
Long expectedScheduledMessageCount = 0L;
Long expectedTransferMessageCount = 0L;
Long expectedTransferDeadLetterMessageCount = 0L;
// Act
QueueInfo queueInfo = service.getQueue(queueName).getValue();
MessageCountDetails countDetails = queueInfo.getCountDetails();
// Assert
assertEquals(true, queueInfo.isSupportOrdering());
assertNotNull(countDetails);
assertEquals(expectedActiveMessageCount,
countDetails.getActiveMessageCount());
assertEquals(expectedDeadLetterMessageCount,
countDetails.getDeadLetterMessageCount());