### Question:
SparkDataSetContext extends DataSetOptions { @Nullable @Override public List<String> getPaths() { if (paths == null) { paths = Option.apply(isFileFormat() ? resolveFilePaths() : super.getPaths()); } return SparkUtil.getOrElse(paths, null); } SparkDataSetContext(@Nonnull final DataSetOptions parent, @Nonnull final KyloCatalogClient<T> client, @Nonnull final SparkDataSetDelegate<T> delegate); boolean isFileFormat(); @Nonnull @Override Option<String> getOption(@Nonnull final String key); @Nonnull @Override Map<String, String> getOptions(); @Nullable @Override List<String> getPaths();  }### Answer:
@Test @SuppressWarnings("unchecked") public void getPaths() { final DataSetOptions options = new DataSetOptions(); options.setFormat("mock"); options.setOption(KyloCatalogConstants.PATH_OPTION, "/mock/path/file1.txt"); options.setPaths(Collections.singletonList("/mock/path/file2.txt")); final SparkDataSetContext<DataFrame> context = new SparkDataSetContext<>(options, Mockito.mock(KyloCatalogClient.class), Mockito.mock(SparkDataSetDelegate.class)); Assert.assertEquals("/mock/path/file1.txt", context.getOption("path").get()); Assert.assertEquals(Collections.singletonList("/mock/path/file2.txt"), context.getPaths()); }