Map<String, QueryAttribute> queryAttributes = TestUtils.indexQueryAttributesByAliasOrName(query.getQueryAttributes());
{
QueryAttribute queryAttribute = queryAttributes.get("collection-usage-threshold-supported");
assertThat(queryAttribute.getName(), is("CollectionUsageThresholdSupported"));
assertThat(queryAttribute.getResultAlias(), is("collection-usage-threshold-supported"));
}
{
QueryAttribute queryAttribute = queryAttributes.get("CollectionUsageThresholdCount");
assertThat(queryAttribute.getName(), is("CollectionUsageThresholdCount"));
assertThat(queryAttribute.getResultAlias(), nullValue());
}
{
QueryAttribute queryAttribute = queryAttributes.get("collection-usage-threshold-exceeded");
assertThat(queryAttribute.getName(), is("CollectionUsageThresholdExceeded"));
assertThat(queryAttribute.getResultAlias(), is("collection-usage-threshold-exceeded"));
}
}