ObjectName objectName = new ObjectName("java.lang:type=MemoryPool,name=PS Eden Space");
Query query = queriesByResultName.get("test-with-outputwriter");
assertThat(query.getObjectName(), is(objectName));
assertThat(query.getResultAlias(), is("test-with-outputwriter"));
assertThat(query.getQueryAttributes().size(), is(1));
QueryAttribute queryAttribute = query.getQueryAttributes().iterator().next();
assertThat(queryAttribute.getName(), is("CollectionUsageThresholdCount"));
assertThat(query.getOutputWriters().size(), is(1));
assertThat(query.getEffectiveOutputWriters().size(), is(5));
OutputWriter outputWriter = query.getOutputWriters().get(0);
assertThat(outputWriter, instanceOf(NoOpWriter.class));
}