### Question:
MongoExecution extends Execution { public MongoExecution addWriteConcern(WriteConcern writeConcern) { this.add(WRITE_CONCERN, writeConcern.name()); return this; } protected  MongoExecution(); static MongoExecution withReadPreference(ReadPreference readPreference); static MongoExecution withWriteConcern(WriteConcern writeConcern); @Deprecated static MongoExecution withWriteConcern(String writeConcern); static MongoExecution withMaxQueryTimeMS(int maxQueryTimeMS); MongoExecution addReadPreference(ReadPreference readPreference); MongoExecution addWriteConcern(WriteConcern writeConcern); @Deprecated MongoExecution addWriteConcern(String writeConcern); MongoExecution addMaxQueryTimeMS(int maxQueryTimeMS); static final String READ_PREFERENCE; static final String WRITE_CONCERN; static final String MAX_QUERY_TIME_MS; }### Answer:
@Test public void testReSetWriteConcern() { MongoExecution e = new MongoExecution(); e.addWriteConcern(WriteConcern.majority); e.addWriteConcern(WriteConcern.unacknowledged); eq("{'writeConcern':'unacknowledged'}", e); }