@Test
  public void registerDataSetDefsTest() {
    ArgumentCaptor<DataSetDef> argument = ArgumentCaptor.forClass(DataSetDef.class);
    verify(dataSetRegistry, times(2)).registerDataSetDef(argument.capture());

    List<DataSetDef> dataSetDefList = argument.getAllValues();
    assertEquals(dataSetDefList.size(), 2);
    assertEquals(dataSetDefList.get(0).getUUID(), PROCESS_INSTANCE_DATASET);
    assertEquals(dataSetDefList.get(1).getUUID(), PROCESS_INSTANCE_WITH_VARIABLES_DATASET);
  }
  // TODO Needs redesign as data source is deployed to kie server
  @Ignore
  public void procInstancesPreprocessorTest() {
    DataSetLookup lookup =
        DataSetLookupFactory.newDataSetLookupBuilder()
            .dataset(PROCESS_INSTANCE_DATASET)
            .buildLookup();

    dataSetManager.lookupDataSet(lookup);
    ArgumentCaptor<DataSetLookup> argument = ArgumentCaptor.forClass(DataSetLookup.class);

    //        verify(deploymentIdsPreprocessor).preprocess(lookup);
    verify(dataSetManager).lookupDataSet(argument.capture());
    assertEquals(
        argument.getValue(),
        DataSetLookupFactory.newDataSetLookupBuilder()
            .dataset(PROCESS_INSTANCE_DATASET)
            .filter(in(COLUMN_EXTERNAL_ID, deploymentIds))
            .buildLookup());
  }