Object formattedStats = (String)getServer().invoke(POOL_NAME, FORMATTED_STATS_METHOD, new Object[0], new String[0]);
assertTrue(formattedStats instanceof String);
JBossDefaultSubPoolStatisticFormatter defaultFormatter = new JBossDefaultSubPoolStatisticFormatter();
Object rawStatistics = listRawStatistics();
ManagedConnectionPoolStatistics stats = (ManagedConnectionPoolStatistics)rawStatistics;
String rawFormat = (String)defaultFormatter.formatSubPoolStatistics(stats);
assertEquals(formattedStats, rawFormat);
}