### Question:
HTableDescriptor implements WritableComparable<HTableDescriptor> { public long getMemStoreFlushSize() { byte [] value = getValue(MEMSTORE_FLUSHSIZE_KEY); if (value != null) { return Long.parseLong(Bytes.toString(value)); } return -1; } protected  HTableDescriptor(final byte [] name, HColumnDescriptor[] families); protected  HTableDescriptor(final byte [] name, HColumnDescriptor[] families,
      Map<ImmutableBytesWritable,ImmutableBytesWritable> values);  HTableDescriptor();  HTableDescriptor(final String name);  HTableDescriptor(final byte [] name);  HTableDescriptor(final HTableDescriptor desc); boolean isRootRegion(); boolean isMetaRegion(); boolean isMetaTable(); static boolean isMetaTable(final byte [] tableName); static byte [] isLegalTableName(final byte [] tableName); byte[] getValue(byte[] key); String getValue(String key); Map<ImmutableBytesWritable,ImmutableBytesWritable> getValues(); void setValue(byte[] key, byte[] value); void setValue(String key, String value); void remove(final byte [] key); void remove(final String key); boolean isReadOnly(); void setReadOnly(final boolean readOnly); synchronized boolean isDeferredLogFlush(); void setDeferredLogFlush(final boolean isDeferredLogFlush); byte [] getName(); String getNameAsString(); String getRegionSplitPolicyClassName(); void setName(byte[] name); long getMaxFileSize(); void setMaxFileSize(long maxFileSize); long getMemStoreFlushSize(); void setMemStoreFlushSize(long memstoreFlushSize); void addFamily(final HColumnDescriptor family); boolean hasFamily(final byte [] familyName); @Override String toString(); String toStringCustomizedValues(); @Override boolean equals(Object obj); @Override int hashCode(); @Override void readFields(DataInput in); @Override void write(DataOutput out); @Override int compareTo(final HTableDescriptor other); Collection<HColumnDescriptor> getFamilies(); Set<byte[]> getFamiliesKeys(); HColumnDescriptor[] getColumnFamilies(); HColumnDescriptor getFamily(final byte [] column); HColumnDescriptor removeFamily(final byte [] column); void addCoprocessor(String className); void addCoprocessor(String className, Path jarFilePath,
                             int priority, final Map<String, String> kvs); boolean hasCoprocessor(String className); List<String> getCoprocessors(); void removeCoprocessor(String className); static Path getTableDir(Path rootdir, final byte [] tableName); @Deprecated void setOwner(User owner); @Deprecated void setOwnerString(String ownerString); @Deprecated String getOwnerString(); static final String SPLIT_POLICY; static final String MAX_FILESIZE; static final String OWNER; static final ImmutableBytesWritable OWNER_KEY; static final String READONLY; static final String MEMSTORE_FLUSHSIZE; static final String IS_ROOT; static final String IS_META; static final String DEFERRED_LOG_FLUSH; static final boolean DEFAULT_READONLY; static final long DEFAULT_MEMSTORE_FLUSH_SIZE; static final String VALID_USER_TABLE_REGEX; static final HTableDescriptor ROOT_TABLEDESC; static final HTableDescriptor META_TABLEDESC; }### Answer:
@Test public void testGetMemStoreFlushSize() { HTableDescriptor desc = new HTableDescriptor("table"); assertEquals(-1, desc.getMemStoreFlushSize()); desc.setMemStoreFlushSize(1111L); assertEquals(1111L, desc.getMemStoreFlushSize()); }