@@ -0,0 +1,1208 @@
+/*%0A * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0%0A * (the %E2%80%9CLicense%E2%80%9D). You may not use this work except in compliance with the License, which is%0A * available at www.apache.org/licenses/LICENSE-2.0%0A *%0A * This software is distributed on an %22AS IS%22 basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,%0A * either express or implied, as more fully set forth in the License.%0A *%0A * See the NOTICE file distributed with this work for information regarding copyright ownership.%0A */%0A%0Apackage alluxio.master.file.options;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * Unit tests for %7B@link MountOptionsTest%7D.%0A */%0Apublic class MountOptionsTest %7B%0A  /**%0A   * Tests the %7B@link MountOptions#defaults()%7D method.%0A   */%0A  @Test%0A  public void defaultsTest() %7B%0A    MountOptions options = MountOptions.defaults();%0A    Assert.assertFalse(options.isReadOnly());%0A  %7D%0A%0A  /**%0A   * Tests getting and setting fields.%0A   */%0A  @Test%0A  public void fieldsTest() %7B%0A    MountOptions options = MountOptions.defaults().setReadOnly(true);%0A    Assert.assertTrue(options.isReadOnly());%0A%0A    options = MountOptions.defaults().setReadOnly(false);%0A    Assert.assertFalse(options.isReadOnly());%0A  %7D%0A%7D%0A

Add test for master MountOptions