@Test
public void read() {

    // Create options
    final DataSetOptions options = new DataSetOptions();
    options.addJar("http://example.com/serde.jar");
    options.setOption(KyloCatalogConstants.PATH_OPTION, "default.mytable");
    // Test reading
    dataFrame = Mockito.mock(DataFrame.class);
    final MockHiveDataSetProvider provider = new MockHiveDataSetProvider();
    final DataFrame result = provider.read(Mockito.mock(KyloCatalogClient.class), options);
    Assert.assertEquals(dataFrame, result);
    Mockito.verify(sqlContext).sql("ADD JAR http://example.com/serde.jar");
}