@Test
  public void testTableOutputFormatWhenWalIsOFFForPut() throws IOException, InterruptedException {
    // setting up the configuration for the TableOutputFormat, with writing to the WAL off.
    conf.setBoolean(TableOutputFormat.WAL_PROPERTY, TableOutputFormat.WAL_OFF);
    tableOutputFormat.setConf(conf);

    writer = tableOutputFormat.getRecordWriter(context);

    // creating mutation of the type put
    Put put = new Put("row1".getBytes());
    put.addColumn(columnFamily, Bytes.toBytes("aa"), Bytes.toBytes("value"));

    // verifying whether durability of mutation is USE_DEFAULT or not, before commiting write.
    Assert.assertEquals("Durability of the mutation should be USE_DEFAULT", Durability.USE_DEFAULT,
      put.getDurability());

    writer.write(null, put);

    // verifying whether durability of mutation got changed to the SKIP_WAL or not.
    Assert.assertEquals("Durability of the mutation should be SKIP_WAL", Durability.SKIP_WAL,
      put.getDurability());
  }
Simple Tests to check whether the durability of the Mutation is changed or not, for
{@link TableOutputFormat} if {@link TableOutputFormat#WAL_PROPERTY} is set to false.
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableOutputFormat.java