@Test public void testCacheTypes() throws Exception { String[] array = { Admin.Cache.PREPARED_PLAN_CACHE.toString(), Admin.Cache.QUERY_SERVICE_RESULT_SET_CACHE.toString() }; Collection<String> types = admin.getCacheTypes(); assertArrayEquals(array, types.toArray()); }