### Question:
MongoExecution extends Execution { public static MongoExecution withWriteConcern(WriteConcern writeConcern) { return new MongoExecution().addWriteConcern(writeConcern); } 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 testWriteConcern() { eq("{'writeConcern':'w2'}", MongoExecution.withWriteConcern(WriteConcern.w2)); }