### Question:
AbstractDataSetOptionsAccess extends AbstractKyloCatalogDataSetAccess<R> { @Nonnull @Override public R option(@Nonnull final String key, @Nullable final String value) { if (key.startsWith(KyloCatalogConstants.HADOOP_CONF_PREFIX)) { hadoopConfiguration.set(key.substring(KyloCatalogConstants.HADOOP_CONF_PREFIX.length()), value); } options.setOption(key, value); return (R) this; } AbstractDataSetOptionsAccess(@Nonnull final DataSetOptions options, @Nonnull final Configuration hadoopConfiguration, @Nonnull final DataSourceResourceLoader resourceLoader); @Nonnull @Override final R addFile(@Nullable final String path); @Nonnull @Override final R addJar(@Nullable final String path); @Nonnull @Override final R addJars(@Nullable final List<String> paths); @Nonnull R dataSet(@Nonnull final DataSetTemplate dataSet); @Nonnull @Override final R format(@Nonnull final String source); @Nonnull @Override R option(@Nonnull final String key, @Nullable final String value);  }### Answer:
@Test public void option() { 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")); }