### Question:
RecordManager extends AbstractTransactionManager { public RecordManager( String fileName ) { this( fileName, DEFAULT_PAGE_SIZE ); } RecordManager( String fileName );  RecordManager( String fileName, int pageSize ); void beginTransaction(); void commit(); boolean isContextOk(); void rollback(); Page<K, V> deserialize( BTree<K, V> btree, long offset ); synchronized void manage( BTree<K, V> btree ); synchronized void manageSubBtree( BTree<K, V> btree ); void updateRecordManagerHeader(); void updateRecordManagerHeader( long newBtreeOfBtreesOffset, long newCopiedPageBtreeOffset ); int getPageSize(); void close(); static String dump( byte octet ); void dump(); int getNbManagedTrees(); Set<String> getManagedTrees(); BTree<K, V> getManagedTree( String name ); boolean isKeepRevisions(); void setKeepRevisions( boolean keepRevisions ); @SuppressWarnings("all") BTree<K, V> addBTree( String name, ElementSerializer<K> keySerializer,
        ElementSerializer<V> valueSerializer, boolean allowDuplicates ); BTreeHeader getBTreeHeader( String name ); BTreeHeader getNewBTreeHeader( String name ); void updateNewBTreeHeaders( BTreeHeader btreeHeader ); String toString(); public AtomicLong nbFreedPages; public AtomicLong nbCreatedPages; public AtomicLong nbReusedPages; public AtomicLong nbUpdateRMHeader; public AtomicLong nbUpdateBtreeHeader; public AtomicLong nbUpdatePageIOs; static final long NO_PAGE; static final int DEFAULT_PAGE_SIZE; static final boolean INTERNAL_BTREE; static final boolean NORMAL_BTREE; public Map<Long, Integer> writeCounter; }### Answer:
@Test @Ignore public void testRecordManager() throws IOException, BTreeAlreadyManagedException { assertEquals( 1, recordManager.getNbManagedTrees() ); Set<String> managedBTrees = recordManager.getManagedTrees(); assertEquals( 1, managedBTrees.size() ); assertTrue( managedBTrees.contains( "test" ) ); BTree<Long, String> btree1 = recordManager.getManagedTree( "test" ); assertNotNull( btree1 ); assertEquals( btree.getKeyComparator().getClass().getName(), btree1.getKeyComparator().getClass().getName() ); assertEquals( btree.getKeySerializer().getClass().getName(), btree1.getKeySerializer().getClass().getName() ); assertEquals( btree.getName(), btree1.getName() ); assertEquals( btree.getNbElems(), btree1.getNbElems() ); assertEquals( btree.getPageSize(), btree1.getPageSize() ); assertEquals( btree.getRevision(), btree1.getRevision() ); assertEquals( btree.getValueSerializer().getClass().getName(), btree1.getValueSerializer().getClass().getName() ); }