@Test
public void option() {

    // Test adding options
    final MockDataSetOptionsAccess mock = new MockDataSetOptionsAccess(Mockito.mock(DataSourceResourceLoader.class));
    mock.option("spark.option", "1");
    mock.option("spark.hadoop.option", "2");
    Assert.assertEquals(2, mock.getOptions().getOptions().size());
    Assert.assertEquals("1", mock.getOptions().getOption("spark.option").get());
    Assert.assertEquals("2", mock.getOptions().getOption("spark.hadoop.option").get());
    Assert.assertEquals(1, mock.hadoopConfiguration.size());
    Assert.assertEquals("2", mock.hadoopConfiguration.get("option"));
}