### Question:
RDBStore implements DBStore { @VisibleForTesting protected ObjectName getStatMBeanName() { return statMBeanName; } @VisibleForTesting  RDBStore(File dbFile, DBOptions options,
                  Set<TableConfig> families);  RDBStore(File dbFile, DBOptions options,
      WriteOptions writeOptions, Set<TableConfig> families,
                  CodecRegistry registry); static IOException toIOException(String msg, RocksDBException e); @Override void compactDB(); @Override void close(); @Override void move(K key, Table<K, V> source,
                                Table<K, V> dest); @Override void move(K key, V value, Table<K, V> source,
                                Table<K, V> dest); @Override void move(K sourceKey, K destKey, V value,
                                Table<K, V> source,
                                Table<K, V> dest); @Override long getEstimatedKeyCount(); @Override BatchOperation initBatchOperation(); @Override void commitBatchOperation(BatchOperation operation); @Override Table<byte[], byte[]> getTable(String name); @Override Table<K, V> getTable(String name,
      Class<K> keyType, Class<V> valueType); @Override Table<K, V> getTable(String name,
      Class<K> keyType, Class<V> valueType,
      TableCacheImpl.CacheCleanupPolicy cleanupPolicy); @Override ArrayList<Table> listTables(); @Override void flushDB(); @Override void flushLog(boolean sync); @Override DBCheckpoint getCheckpoint(boolean flush); @Override File getDbLocation(); @Override Map<Integer, String> getTableNames(); @Override CodecRegistry getCodecRegistry(); @Override DBUpdatesWrapper getUpdatesSince(long sequenceNumber); @VisibleForTesting RocksDB getDb(); RDBMetrics getMetrics();  }### Answer:
@Test public void getStatMBeanName() throws Exception { try (Table firstTable = rdbStore.getTable(families.get(1))) { for (int y = 0; y < 100; y++) { byte[] key = RandomStringUtils.random(10).getBytes(StandardCharsets.UTF_8); byte[] value = RandomStringUtils.random(10).getBytes(StandardCharsets.UTF_8); firstTable.put(key, value); } } MBeanServer platformMBeanServer = ManagementFactory.getPlatformMBeanServer(); Thread.sleep(2000); Object keysWritten = platformMBeanServer .getAttribute(rdbStore.getStatMBeanName(), "NUMBER_KEYS_WRITTEN"); Assert.assertTrue(((Long) keysWritten) >= 99L); Object dbWriteAverage = platformMBeanServer .getAttribute(rdbStore.getStatMBeanName(), "DB_WRITE_AVERAGE"); Assert.assertTrue((double) dbWriteAverage > 0); }