### Question:
QueryCacheBean { @GET @Path("/listRunningQueries") @Produces({"application/xml", "text/xml", "application/json", "text/yaml", "text/x-yaml", "application/x-yaml", "text/html"}) @GZIP @RolesAllowed({"Administrator", "JBossAdministrator"}) public RunningQueries getRunningQueries() { RunningQueries result = new RunningQueries(); for (RunningQuery value : cache) { result.getQueries().add(value.toString()); } for (Entry<String,Pair<QueryLogic<?>,Connector>> entry : qlCache.snapshot().entrySet()) { result.getQueries().add("Identifier: " + entry.getKey() + " Query Logic: " + entry.getValue().getFirst().getClass().getName() + "\n"); } return result; }  @RolesAllowed({"Administrator", "JBossAdministrator"}) @JmxManaged String listRunningQueries(); @GET @Path("/listRunningQueries") @Produces({"application/xml", "text/xml", "application/json", "text/yaml", "text/x-yaml", "application/x-yaml", "text/html"}) @GZIP @RolesAllowed({"Administrator", "JBossAdministrator"}) RunningQueries getRunningQueries(); @RolesAllowed({"Administrator", "JBossAdministrator"}) @JmxManaged String cancelUserQuery(String id);  }### Answer:
@Test public void testGetRunningQueries() { RunningQueries output = bean.getRunningQueries(); assertEquals(expectedResult, output.getQueries().get(0)); }