### Question:
FileReplicaDB { void clear() throws ChangelogException { log.clear(); replicationEnv.resetGenerationId(baseDN); csnLimits = new CSNLimits(null, null); } FileReplicaDB(final int serverId, final DN baseDN, final ReplicationServer replicationServer,
      final ReplicationEnvironment replicationEnv); @Override String toString();  }### Answer:
@Test public void testClear() throws Exception { ReplicationServer replicationServer = null; FileReplicaDB replicaDB = null; try { TestCaseUtils.startServer(); replicationServer = configureReplicationServer(100, 5000); replicaDB = newReplicaDB(replicationServer); CSN[] csns = generateCSNs(1, 0, 3); replicaDB.add(new DeleteMsg(TEST_ROOT_DN, csns[0], "uid")); replicaDB.add(new DeleteMsg(TEST_ROOT_DN, csns[1], "uid")); replicaDB.add(new DeleteMsg(TEST_ROOT_DN, csns[2], "uid")); assertLimits(replicaDB, csns[0], csns[2]); replicaDB.clear(); assertLimits(replicaDB, null, null); } finally { shutdown(replicaDB); remove(replicationServer); } }