### Question:
Storage { public Options getOptionsByDbName(String dbName) { if (hasProperty(dbName)) { return getProperty(dbName).getDbOptions(); } return createDefaultDbOptions(); }  static int getDbVersionFromConfig(final Config config); static String getDbEngineFromConfig(final Config config); static Boolean getDbVersionSyncFromConfig(final Config config); static Boolean getContractParseSwitchFromConfig(final Config config); static String getDbDirectoryFromConfig(final Config config); static String getIndexDirectoryFromConfig(final Config config); static String getIndexSwitchFromConfig(final Config config); static String getTransactionHistoreSwitchFromConfig(final Config config); void setPropertyMapFromConfig(final Config config); String getPathByDbName(String dbName); Options getOptionsByDbName(String dbName); void deleteAllStoragePaths();  }### Answer:
@Test public void getOptions() { Options options = storage.getOptionsByDbName("account"); Assert.assertTrue(options.createIfMissing()); Assert.assertTrue(options.paranoidChecks()); Assert.assertTrue(options.verifyChecksums()); Assert.assertEquals(CompressionType.SNAPPY, options.compressionType()); Assert.assertEquals(4096, options.blockSize()); Assert.assertEquals(10485760, options.writeBufferSize()); Assert.assertEquals(10485760L, options.cacheSize()); Assert.assertEquals(100, options.maxOpenFiles()); options = storage.getOptionsByDbName("test_name"); Assert.assertFalse(options.createIfMissing()); Assert.assertFalse(options.paranoidChecks()); Assert.assertFalse(options.verifyChecksums()); Assert.assertEquals(CompressionType.SNAPPY, options.compressionType()); Assert.assertEquals(2, options.blockSize()); Assert.assertEquals(3, options.writeBufferSize()); Assert.assertEquals(4L, options.cacheSize()); Assert.assertEquals(5, options.maxOpenFiles()); options = storage.getOptionsByDbName("some_name_not_exists"); Assert.assertTrue(options.createIfMissing()); Assert.assertTrue(options.paranoidChecks()); Assert.assertTrue(options.verifyChecksums()); Assert.assertEquals(CompressionType.SNAPPY, options.compressionType()); Assert.assertEquals(4 * 1024, options.blockSize()); Assert.assertEquals(10 * 1024 * 1024, options.writeBufferSize()); Assert.assertEquals(10 * 1024 * 1024L, options.cacheSize()); Assert.assertEquals(100, options.maxOpenFiles()); }