@Test(expected = BadRequestException.class)
public void createDataSetWithInvalid() {

    Mockito.when(dataSetBuilder.build()).thenThrow(new DataSourceNotFoundException(null));
    
    final com.thinkbiganalytics.kylo.catalog.rest.model.DataSource src = modelTransform.dataSourceToRestModel().apply(dataSource);
    controller.createDataSet(new com.thinkbiganalytics.kylo.catalog.rest.model.DataSet(src, ""));
}