@Test
public void withProcessConfig() {

    final ConfigGenerator generator = new ConfigGenerator("org.kie.kogito.test");
    final ProcessConfigGenerator processConfigGenerator = Mockito.mock(ProcessConfigGenerator.class);
    final ConfigGenerator returnedConfigGenerator = generator.withProcessConfig(processConfigGenerator);
    assertThat(returnedConfigGenerator).isNotNull();
    assertThat(returnedConfigGenerator).isSameAs(generator);
}